Fedora: Can't find microstack.rabbitmqctl

Bug #1852669 reported by Pen Gale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
Triaged
Medium
Unassigned

Bug Description

The MicroStack snap can be installed on Fedora, but the .init fails with an error message that seems to indicate that microstack is not in the path in the snap environment.

To reproduce, spin up a Fedora machine (I used the Fedora 31 Server cloud image, and spinning it up using MicroStack), and do:

    sudo dnf install kernel-modules -y
    sudo dnf install snapd -y
    sudo ln -s /var/lib/snapd/snap /snap
    sudo microstack.init -- auto

I'll post the full error in the comments below.

Tags: fedora
Revision history for this message
Pen Gale (pengale) wrote :

The error:

2019-11-15 02:24:12,804 - microstack_init - INFO - Configuring RabbitMQ ...
Traceback (most recent call last):
  File "/snap/microstack/182/bin/microstack_init", line 11, in <module>
    load_entry_point('microstack-init==0.0.1', 'console_scripts', 'microstack_init')()
  File "/snap/microstack/182/lib/python3.6/site-packages/init/main.py", line 122, in main
    question.ask()
  File "/snap/microstack/182/lib/python3.6/site-packages/init/questions/question.py", line 210, in ask
    self.yes(awr)
  File "/snap/microstack/182/lib/python3.6/site-packages/init/questions/__init__.py", line 304, in yes
    self._configure()
  File "/snap/microstack/182/lib/python3.6/site-packages/init/questions/__init__.py", line 295, in _configure
    call('microstack.rabbitmqctl', 'add_user', 'openstack', 'rabbitmq')
  File "/snap/microstack/182/lib/python3.6/site-packages/init/shell.py", line 93, in call
    proc = _popen(*args, env=env)
  File "/snap/microstack/182/lib/python3.6/site-packages/init/shell.py", line 51, in _popen
    universal_newlines=True, encoding='utf-8')
  File "/snap/microstack/182/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/snap/microstack/182/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'microstack.rabbitmqctl': 'microstack.rabbitmqctl'
[fedora@fedora ~]$ exit
logout
Connection to 10.20.20.48 closed.

Revision history for this message
Pen Gale (pengale) wrote :
Download full text (3.2 KiB)

Interestingly, I get further if I open a shell in the snap environment and run microstack_init from there (though note that there are some missing libs that will probably cause mischief):

[fedora@fedora ~]$ sudo snap run --shell microstack.init
flatpak: /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /lib64/liblua-5.3.so)
flatpak: /snap/microstack/182/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by /lib64/libssh.so.4)
[root@fedora fedora]# microstack_init --auto
2019-11-15 02:42:48,726 - microstack_init - INFO - Configuring networking ...
2019-11-15 02:42:49,684 - microstack_init - INFO - Setting up ipv4 forwarding...
2019-11-15 02:42:50,496 - microstack_init - INFO - Opening horizon dashboard up to *
2019-11-15 02:42:50,530 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 10.20.22.1:5672
2019-11-15 02:42:50,534 - microstack_init - INFO - RabbitMQ started!
2019-11-15 02:42:50,534 - microstack_init - INFO - Configuring RabbitMQ ...
2019-11-15 02:42:51,916 - microstack_init - INFO - RabbitMQ Configured!
2019-11-15 02:42:51,938 - microstack_init - INFO - Waiting for MySQL server to start ...
Waiting for 10.20.22.1:3306
2019-11-15 02:42:51,939 - microstack_init - INFO - Mysql server started! Creating databases ...
/snap/microstack/182/lib/python3.6/site-packages/pymysql/cursors.py:170: Warning: (1287, 'Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.')
  result = self._query(query)
/snap/microstack/182/lib/python3.6/site-packages/pymysql/cursors.py:170: Warning: (1287, "Using GRANT statement to modify existing user's properties other than privileges is deprecated and will be removed in future release. Use ALTER USER statement for this operation.")
  result = self._query(query)
2019-11-15 02:42:52,839 - microstack_init - INFO - Configuring Keystone Fernet Keys ...
2019-11-15 02:43:12,693 - microstack_init - INFO - Bootstrapping Keystone ...
2019-11-15 02:43:18,608 - microstack_init - INFO - Creating service project ...
2019-11-15 02:43:24,123 - microstack_init - INFO - Keystone configured!
2019-11-15 02:43:24,155 - microstack_init - INFO - Configuring nova compute hypervisor ...
2019-11-15 02:43:36,699 - microstack_init - INFO - Configuring nova control plane services ...
Waiting for 10.20.22.1:8774
2019-11-15 02:45:17,926 - microstack_init - INFO - Creating default flavors...
2019-11-15 02:45:43,923 - microstack_init - INFO - Configuring Neutron
Waiting for 10.20.22.1:9696
2019-11-15 02:47:12,345 - microstack_init - INFO - Configuring Glance ...
Waiting for 10.20.22.1:9292
2019-11-15 02:47:48,375 - microstack_init - INFO - Adding cirros image ...
2019-11-15 02:47:53,922 - microstack_init - INFO - Creating microstack keypair (~/.ssh/id_microstack)
2019-11-15 02:47:56,537 - microstack_init - INFO - Creating security group rules ...
2019-11-15 02:48:06,173 - microstack_init - INFO - restarting libvirt and virtlogd ...
2019-11-15 02:48:06,271 - microstack_init - INFO - Complete. Marked microstack as initialized!

Unfortunately, running microstack.launch ...

Read more...

Pen Gale (pengale)
Changed in microstack:
importance: Undecided → Medium
assignee: nobody → Pete Vander Giessen (petevg)
assignee: Pete Vander Giessen (petevg) → nobody
status: New → Triaged
Pen Gale (pengale)
tags: added: fedora
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.