Comment 3 for bug 2030349

Revision history for this message
philippe (philhay) wrote :

Hello All,

I have same problem, appears each time.

I made a fresh install from kubuntu 22.04 LTS. Twice, one with docker and git install first, second one directly following install process of microstack describe here https://microstack.run/?_ga=2.213454557.874672970.1693812924-1742046544.1693812924#get-started.

workaround from Erdem does not work.

Hypervisor hostname perceived by libvirt should be displayed to have a useful error message ...

Full steps and traces

phil@phil-dell:~$ sudo snap install multipass
[sudo] password for phil:
multipass 1.12.2 from Canonical✓ installed
phil@phil-dell:~$ multipass launch --name microstack --cpus 4 --memory 16G --disk 50G && multipass shell microstack
Launched: microstack
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-83-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  System information as of Sat Sep 16 07:59:50 UTC 2023

  System load: 0.4677734375 Processes: 138
  Usage of /: 2.9% of 48.27GB Users logged in: 0
  Memory usage: 1% IPv4 address for ens3: 10.158.141.207
  Swap usage: 0%

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@microstack:~$ sudo snap install openstack
openstack (2023.1/stable) 2023.1 from Canonical✓ installed

ubuntu@microstack:~$ sudo snap install openstack
openstack (2023.1/stable) 2023.1 from Canonical✓ installed
ubuntu@microstack:~$ sunbeam prepare-node-script | bash -x && newgrp snap_daemon
++ lsb_release -sc
+ '[' jammy '!=' jammy ']'
++ whoami
+ USER=ubuntu
+ SUDO_ASKPASS=/bin/false
+ sudo -A whoami
+ sudo grep -r ubuntu /etc/sudoers /etc/sudoers.d
+ grep NOPASSWD:ALL
+ dpkg -s openssh-server
+ echo 'fs.inotify.max_user_instances = 1024'
+ sudo tee /etc/sysctl.d/80-sunbeam.conf
fs.inotify.max_user_instances = 1024
+ sudo sysctl -q -p /etc/sysctl.d/80-sunbeam.conf
+ sudo snap connect openstack:ssh-keys
+ sudo addgroup ubuntu snap_daemon
Adding user `ubuntu' to group `snap_daemon' ...
Adding user ubuntu to group snap_daemon
Done.
+ newgrp snap_daemon
Generating public/private rsa key pair.
Your identification has been saved in /home/ubuntu/.ssh/id_rsa
Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:QQDHfeM0hFuJYDqM8b6/j4kju8s0a0QJ28q+QiV+21c ubuntu@microstack
The keys randomart image is:
+---[RSA 4096]----+
| . .o=+.+.. |
|. = +..+ B |
| +..= .* o |
|..+o . ... |
|ooo . S |
|.+.. . E |
|o.+ + . |
|.+o+.+ + |
|.oB=..*o. |
+----[SHA256]-----+
# 10.158.141.207:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
# 10.158.141.207:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
# 10.158.141.207:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
# 10.158.141.207:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
# 10.158.141.207:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
juju (3.2/stable) 3.2.3 from Canonical✓ installed

ubuntu@microstack:~$ sunbeam cluster bootstrap --accept-defaults
Error: Host FQDN and Hypervisor hostname perceived by libvirt are different, check `hostname -f` and `/etc/hosts` file
ubuntu@microstack:~$ hostname -f
microstack
ubuntu@microstack:~$ cat /etc/hosts
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.debian.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
127.0.1.1 microstack microstack
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

ubuntu@microstack:~$ sudo hostnamectl set-hostname microstackdebug
ubuntu@microstack:~$ invoke-rc.d hostname.sh restart
ubuntu@microstack:~$ hostname -f
microstackdebug
ubuntu@microstack:~$ sunbeam cluster bootstrap --accept-defaults
Error: Host FQDN and Hypervisor hostname perceived by libvirt are different, check `hostname -f` and `/etc/hosts` file
ubuntu@microstack:~$ sunbeam -vvv cluster bootstrap --accept-defaults
Error: Host FQDN and Hypervisor hostname perceived by libvirt are different, check `hostname -f` and `/etc/hosts` file
ubuntu@microstack:~$ sunbeam -v cluster bootstrap --accept-defaults
[10:33:01] DEBUG Bootstrap node: roles CONTROL,COMPUTE bootstrap.py:145
           DEBUG Updating /home/ubuntu/snap/openstack/common/etc/deploy-sunbeam-machine bootstrap.py:161
                    from /snap/openstack/247/etc/deploy-sunbeam-machine...
           DEBUG Updating /home/ubuntu/snap/openstack/common/etc/deploy-microk8s from bootstrap.py:161
                    /snap/openstack/247/etc/deploy-microk8s...
           DEBUG Updating /home/ubuntu/snap/openstack/common/etc/deploy-microceph from bootstrap.py:161
                    /snap/openstack/247/etc/deploy-microceph...
           DEBUG Updating /home/ubuntu/snap/openstack/common/etc/deploy-openstack from bootstrap.py:161
                    /snap/openstack/247/etc/deploy-openstack...
           DEBUG Updating bootstrap.py:161
                    /home/ubuntu/snap/openstack/common/etc/deploy-openstack-hypervisor from
                    /snap/openstack/247/etc/deploy-openstack-hypervisor...
           DEBUG Starting pre-flight check Check for juju snap common.py:206
           DEBUG Starting pre-flight check Check for ssh-keys interface common.py:206
           DEBUG Starting pre-flight check Check for snap_daemon group membership common.py:206
           DEBUG Starting pre-flight check Check for .local/share directory common.py:206
           DEBUG Starting pre-flight check Check for Hypervisor Hostname common.py:206
Error: Host FQDN and Hypervisor hostname perceived by libvirt are different, check `hostname -f` and `/etc/hosts` file

If you need more, give me complete commands because i am new to snap and sunbeam-microstack.