Subprocess CalledProcessError During "microstack init" Procedure

Bug #1954568 reported by Padraig Connolly
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MicroStack
New
Undecided
Unassigned

Bug Description

I am currently trying to install microstack on an Ubuntu 20.04 server instance behind a corporate proxy (w/ root user). The procedure from here was followed: https://microstack.run/docs/single-node

1. snap install microstack --devmode --beta
2. microstack init --auto --control
After running the init command, it proceeds through a few stages but fails on "openstack project create --domain default --description "Service Project" service"

Logs:
2021-12-11 15:10:43,607 - microstack_init - INFO - Configuring clustering ...
2021-12-11 15:10:44,174 - microstack_init - INFO - Setting up as a control node.
2021-12-11 15:10:50,385 - microstack_init - INFO - Generating TLS Certificate and Key
2021-12-11 15:10:53,090 - microstack_init - INFO - Configuring networking ...
2021-12-11 15:11:10,816 - microstack_init - INFO - Opening horizon dashboard up to *
2021-12-11 15:11:12,805 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 10.243.23.132:5672
2021-12-11 15:11:25,237 - microstack_init - INFO - RabbitMQ started!
2021-12-11 15:11:25,237 - microstack_init - INFO - Configuring RabbitMQ ...
2021-12-11 15:11:27,265 - microstack_init - INFO - RabbitMQ Configured!
2021-12-11 15:11:27,388 - microstack_init - INFO - Waiting for MySQL server to start ...
Waiting for 10.243.23.132:3306
2021-12-11 15:13:03,128 - microstack_init - INFO - Mysql server started! Creating databases ...
2021-12-11 15:13:11,919 - microstack_init - INFO - Configuring Keystone Fernet Keys ...
2021-12-11 15:17:34,978 - microstack_init - INFO - Bootstrapping Keystone ...
2021-12-11 15:19:46,919 - microstack_init - INFO - Creating service project ...
Traceback (most recent call last):
  File "/snap/microstack/242/bin/microstack", line 11, in <module>
    load_entry_point('microstack==0.0.1', 'console_scripts', 'microstack')()
  File "/snap/microstack/242/lib/python3.8/site-packages/microstack/main.py", line 44, in main
    cmd()
  File "/snap/microstack/242/lib/python3.8/site-packages/init/main.py", line 60, in wrapper
    return func(*args, **kwargs)
  File "/snap/microstack/242/lib/python3.8/site-packages/init/main.py", line 228, in init
    question.ask()
  File "/snap/microstack/242/lib/python3.8/site-packages/init/questions/question.py", line 210, in ask
    self.yes(awr)
  File "/snap/microstack/242/lib/python3.8/site-packages/init/questions/__init__.py", line 491, in yes
    check('openstack', 'project', 'create', '--domain',
  File "/snap/microstack/242/lib/python3.8/site-packages/init/shell.py", line 69, in check
    raise subprocess.CalledProcessError(proc.returncode, " ".join(args))
subprocess.CalledProcessError: Command 'openstack project create --domain default --description "Service Project" service' returned non-zero exit status 1.

I have a strange feeling that this could be due to the proxy that I run behind, is there any extra config required for this scenario. Apart from that, I'm unsure as to what's causing the initialization issue. If you require any further debugging data, I'm more than happy to provide it!

Revision history for this message
Franco Jaraba Corzo (francojaraba) wrote :

Were you able to resolve this? I am facing the same issue. No clue how to resolve it.

Revision history for this message
Padraig Connolly (pjconnol) wrote :

I'm afraid not, something gives me the feeling Microstack is no longer actively being supported in launchpad.

Are you by any chance running behind a corporate proxy?

Revision history for this message
Franco Jaraba Corzo (francojaraba) wrote :

I am not using a proxy, but I found a way to resolve it and it was removing the keystone folder that was already in the /etc. Hope this can help you.

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.