You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2012/05/03 21:48:49 UTC

[jira] [Created] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - luanched through Deltacloud

Ronelle Landy created DTACLOUD-205:
--------------------------------------

             Summary: "Permission denied" when ssh'ing to an Openstack instance - luanched through Deltacloud
                 Key: DTACLOUD-205
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
             Project: DeltaCloud
          Issue Type: Bug
          Components: Server
         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
RHEL 6.2
Openstack V2.0
            Reporter: Ronelle Landy
            Assignee: Marios Andreou


I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.

When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?

Answer from Marios: 
In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-205:
------------------------------------

    Attachment: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch

attached patches should resolve the issue. ready for testing please...

NOTE: these patches rely on changes made to the openstack gem (https://github.com/ruby-openstack/ruby-openstack/pull/2 ). Please make sure you install the latest version of openstack (1.0.1 currently) otherwise the patches won't work. The patches include a change to our .gemspec to reflect this new requirement. thanks.
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278796#comment-13278796 ] 

Marios Andreou commented on DTACLOUD-205:
-----------------------------------------

Note: this issue will stay open for a while longer. Floating IPs and Key Pairs are both OpenStack extensions http://api.openstack.org/ (grep "Compute API Extensions") - after I finish tidying up the merge between the openstack-compute gem and rackspace/cloudfiles gem we can implement these.
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou resolved DTACLOUD-205.
-------------------------------------

    Resolution: Fixed
      Assignee: Ronelle Landy  (was: Marios Andreou)
    
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud

Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy updated DTACLOUD-205:
-----------------------------------

    Summary: "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud  (was: "Permission denied" when ssh'ing to an Openstack instance - luanched through Deltacloud)
    
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud
> ---------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402067#comment-13402067 ] 

Marios Andreou commented on DTACLOUD-205:
-----------------------------------------

thanks - pushed to master, commit hash:

8b614e277fee761bd59d00f211d89aedf86ab86f


about the user_data - I need to test this - there may be a bug - ping me/i'll ping you on irc if we need a new ticket for that.
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400883#comment-13400883 ] 

Ronelle Landy commented on DTACLOUD-205:
----------------------------------------

This patch works to allow ssh to an openstack instance created using a 'key'

>> ssh -i rlandyKey2.pem root@15.185.171.4
Last login: Mon Jun 25 20:37:48 2012 from 96.246.254.220
[root@rlandyud2 ~]# hostname
rlandyud2

Required gem openstack v 1.0.1 ...

QE ACK  on this patch ... please push to master
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403989#comment-13403989 ] 

Marios Andreou commented on DTACLOUD-205:
-----------------------------------------

final note on the user data - after further investigation and help from hp support (https://community.hpcloud.com/question/785/file-injection-server-personality-supported-openstackhpcloud) - file injection is supported but it seems not for all images. In particular I couldn't get file injection working for image #14075.

Images 417 and 223 were both successful. The path specified for the file *must* be under /etc - e.g. /etc/my_file_1 ... for instance I couldn't put a file in /tmp. Don't know if other locations are valid. We should document this for deltacloud - or even 'hard code' it - so any files specified by user are auto-placed into /etc... not sure yet.
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy updated DTACLOUD-205:
-----------------------------------

    Summary: "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)  (was: "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud)

The HP Openstack interface allows users to allocate ip addresses and work with keys. Are these collections going to be added to the Deltacloud driver?

Answer from Marios:

These aren't part of the 'standard' Openstack API (see http://docs.openstack.org/api/openstack-compute/2/content/API_Operations-d1e2068.html - no mention of IP address or key pair management). We need to figure out how to deal with these. Ultimately involves extending the Openstack gem. 
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (DTACLOUD-205) "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)

Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy closed DTACLOUD-205.
----------------------------------


Marking this issue as 'Closed' as the attached patch works to allow ssh to an Openstack instance.

Question for Marios ... where does the user_data go. The instance was created with user_dat but I didn't know where to locate the user_data after ssh'ing to the instance.
                
> "Permission denied" when ssh'ing to an Openstack instance - launched through Deltacloud (no way to pass a keypair in the current API)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-205
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-205
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2
> Openstack V2.0
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-Keys-collection-for-Openstack-driver.-Allows-sp.patch
>
>
> I receive a "permission denied" error when ssh'ing into an instance launched through Deltacloud to my Openstack account : "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." I used the public ip address to ssh to the instance.
> When the instance was in a pending state, there was a password visible. Once the instance went to a RUNNING state, the password disappeared. Is it possible to pass a key pair?
> Answer from Marios: 
> In the HP implementation,  by default, password authentication seems to be disabled and you have to use a keypair. HOWEVER, the openstack API doesn't provide a way for passing 'key_pair' parameter into an instance during creation. Referencing API doc:  (no mention of key_pair parameter under server creation at http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/ch03s01s02.html ). Digging a little deeper I noticed this http://api-docs.hpcloud.com/hpcloud-compute/1.0/content/key-pairs.html and one of the examples shows a 'key_pair' parameter passed in.
> This is another jira issue - not because of something we can fix directly  in the deltacloud code - but rather try and get this functionality into the oOpenstack gem (i.e. accept key_pair parameter and pass onto provider, and also key_pair management)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira