Sangwan70 / openstack-zed

8 stars 11 forks source link

open stack nova compute node adding issue #1

Open ampleadmin001 opened 7 months ago

ampleadmin001 commented 7 months ago

Confirming that the compute host is in the database.ssh controller source /home/stack/openstack-zed/controller/config/admin-openstackrc.sh; openstack compute service list --service nova-compute stack@controller's password:

I am stuck here ..asking password ...but the stack password is not working

ampleadmin001 commented 7 months ago

Confirming that the compute host is in the database.ssh controller source /home/stack/openstack-zed/controller/config/admin-openstackrc.sh; openstack compute service list --service nova-compute stack@controller's password:

I am stuck here ..asking password ...but the stack password is not working

Feb 14 11:23:44 controller sshd[56589]: Accepted password for stack from 10.3.3.58 port 48404 ssh2 Feb 14 11:23:44 controller sshd[56589]: pam_unix(sshd:session): session opened for user stack(uid=1001) by (uid=0) Feb 14 11:23:44 controller systemd-logind[911]: New session 23 of user stack. Feb 14 11:23:46 controller sshd[56639]: Received disconnect from 10.3.3.58 port 48404:11: disconnected by user Feb 14 11:23:46 controller sshd[56639]: Disconnected from user stack 10.3.3.58 port 48404 Feb 14 11:23:46 controller sshd[56589]: pam_unix(sshd:session): session closed for user stack Feb 14 11:23:46 controller systemd-logind[911]: Session 23 logged out. Waiting for processes to exit. Feb 14 11:23:46 controller systemd-logind[911]: Removed session 23.

Sangwan70 commented 7 months ago

All nodes need to be configured with key based authentication and password less SSH Steps:

  1. As root user, create a file with an entry

    vi /etc/sudoers.d/stack

    stack ALL=(ALL) NOPASSWD: ALL

  2. generate ssh keys as root and stack user on all nodes ssh-keygen
  3. Pass the Key to every node including itself as root and as stack user ssh-copy-it {controller,compute,storage) Enjoy

Regards

Ram N. Sangwan

Ph: 9312406920, 011-47320758

On Wed, Feb 14, 2024 at 4:54 PM ampleadmin001 @.***> wrote:

Confirming that the compute host is in the database.ssh controller source /home/stack/openstack-zed/controller/config/admin-openstackrc.sh; openstack compute service list --service nova-compute @.***'s password:

I am stuck here ..asking password ...but the stack password is not working

Feb 14 11:23:44 controller sshd[56589]: Accepted password for stack from 10.3.3.58 port 48404 ssh2 Feb 14 11:23:44 controller sshd[56589]: pam_unix(sshd:session): session opened for user stack(uid=1001) by (uid=0) Feb 14 11:23:44 controller systemd-logind[911]: New session 23 of user stack. Feb 14 11:23:46 controller sshd[56639]: Received disconnect from 10.3.3.58 port 48404:11: disconnected by user Feb 14 11:23:46 controller sshd[56639]: Disconnected from user stack 10.3.3.58 port 48404 Feb 14 11:23:46 controller sshd[56589]: pam_unix(sshd:session): session closed for user stack Feb 14 11:23:46 controller systemd-logind[911]: Session 23 logged out. Waiting for processes to exit. Feb 14 11:23:46 controller systemd-logind[911]: Removed session 23.

— Reply to this email directly, view it on GitHub https://github.com/Sangwan70/openstack-zed/issues/1#issuecomment-1943573726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSKTGTIPF34USY5E45RZPLYTSNG5AVCNFSM6AAAAABDIAHUHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGU3TGNZSGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ampleadmin001 commented 7 months ago

Thank you for your reply. The mentioned configurations are already set up on all nodes, and all the nodes are interconnected without requiring a password, as confirmed through testing. The problem arises when attempting to add a node to the cell database. Additionally, SSH authentication was successful. Could this be due to a RabbitMQ connection issue?


From: Ram Niwas Sangwan @.> Sent: Thursday, February 15, 2024 8:23 AM To: Sangwan70/openstack-zed @.> Cc: Vivek Thalappan @.>; Author @.> Subject: Re: [Sangwan70/openstack-zed] open stack nova compute node adding issue (Issue #1)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

All nodes need to be configured with key based authentication and password less SSH Steps:

  1. As root user, create a file with an entry

    vi /etc/sudoers.d/stack

    stack ALL=(ALL) NOPASSWD: ALL

  2. generate ssh keys as root and stack user on all nodes ssh-keygen
  3. Pass the Key to every node including itself as root and as stack user ssh-copy-it {controller,compute,storage) Enjoy

Regards

Ram N. Sangwan

Ph: 9312406920, 011-47320758

On Wed, Feb 14, 2024 at 4:54 PM ampleadmin001 @.***> wrote:

Confirming that the compute host is in the database.ssh controller source /home/stack/openstack-zed/controller/config/admin-openstackrc.sh; openstack compute service list --service nova-compute @.***'s password:

I am stuck here ..asking password ...but the stack password is not working

Feb 14 11:23:44 controller sshd[56589]: Accepted password for stack from 10.3.3.58 port 48404 ssh2 Feb 14 11:23:44 controller sshd[56589]: pam_unix(sshd:session): session opened for user stack(uid=1001) by (uid=0) Feb 14 11:23:44 controller systemd-logind[911]: New session 23 of user stack. Feb 14 11:23:46 controller sshd[56639]: Received disconnect from 10.3.3.58 port 48404:11: disconnected by user Feb 14 11:23:46 controller sshd[56639]: Disconnected from user stack 10.3.3.58 port 48404 Feb 14 11:23:46 controller sshd[56589]: pam_unix(sshd:session): session closed for user stack Feb 14 11:23:46 controller systemd-logind[911]: Session 23 logged out. Waiting for processes to exit. Feb 14 11:23:46 controller systemd-logind[911]: Removed session 23.

— Reply to this email directly, view it on GitHub https://github.com/Sangwan70/openstack-zed/issues/1#issuecomment-1943573726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSKTGTIPF34USY5E45RZPLYTSNG5AVCNFSM6AAAAABDIAHUHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGU3TGNZSGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/Sangwan70/openstack-zed/issues/1#issuecomment-1945284623, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS4Z7EZF5SV7EP5BY4GSCODYTV2DXAVCNFSM6AAAAABDIAHUHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVGI4DINRSGM. You are receiving this because you authored the thread.Message ID: @.***>