Microstack add-compute fails with expires_at error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| MicroStack |
Undecided
|
Billy Olsen |
Bug Description
Repeatable procedure on clean server:
Install snap
Initialise microstack
Attempt to add compute generates error.
Transcript of my attempt.
$ sudo snap install microstack --beta --devmode
microstack (beta) ussuri from Canonical✓ installed
$ sudo microstack init --auto --control
2020-11-05 13:05:52,936 - microstack_init - INFO - Configuring clustering ...
2020-11-05 13:05:52,995 - microstack_init - INFO - Setting up as a control node.
2020-11-05 13:05:55,209 - microstack_init - INFO - Configuring networking ...
2020-11-05 13:05:59,278 - microstack_init - INFO - Opening horizon dashboard up to *
2020-11-05 13:06:00,031 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 192.168.12.132:5672
2020-11-05 13:06:06,356 - microstack_init - INFO - RabbitMQ started!
2020-11-05 13:06:06,356 - microstack_init - INFO - Configuring RabbitMQ ...
2020-11-05 13:06:07,162 - microstack_init - INFO - RabbitMQ Configured!
2020-11-05 13:06:07,176 - microstack_init - INFO - Waiting for MySQL server to start ...
Waiting for 192.168.12.132:3306
2020-11-05 13:06:07,182 - microstack_init - INFO - Mysql server started! Creating databases ...
2020-11-05 13:06:08,158 - microstack_init - INFO - Configuring Keystone Fernet Keys ...
2020-11-05 13:06:24,418 - microstack_init - INFO - Bootstrapping Keystone ...
2020-11-05 13:06:31,663 - microstack_init - INFO - Creating service project ...
2020-11-05 13:06:36,199 - microstack_init - INFO - Keystone configured!
2020-11-05 13:06:36,214 - microstack_init - INFO - Configuring the Placement service...
2020-11-05 13:06:52,250 - microstack_init - INFO - Running Placement DB migrations...
2020-11-05 13:06:59,812 - microstack_init - INFO - Configuring nova control plane services ...
2020-11-05 13:07:08,796 - microstack_init - INFO - Running Nova API DB migrations (this may take a lot of time)...
2020-11-05 13:07:26,968 - microstack_init - INFO - Running Nova DB migrations (this may take a lot of time)...
Waiting for 192.168.12.132:8774
2020-11-05 13:08:05,926 - microstack_init - INFO - Creating default flavors...
2020-11-05 13:08:26,834 - microstack_init - INFO - Configuring nova compute hypervisor ...
2020-11-05 13:08:26,880 - microstack_init - INFO - Configuring the Spice HTML5 console service...
2020-11-05 13:08:26,926 - microstack_init - INFO - Configuring Neutron
Waiting for 192.168.12.132:9696
2020-11-05 13:09:31,508 - microstack_init - INFO - Configuring Glance ...
Waiting for 192.168.12.132:9292
2020-11-05 13:10:02,135 - microstack_init - INFO - Adding cirros image ...
2020-11-05 13:10:04,167 - microstack_init - INFO - Creating security group rules ...
2020-11-05 13:10:12,488 - microstack_init - INFO - Configuring the Cinder services...
2020-11-05 13:10:58,224 - microstack_init - INFO - Running Cinder DB migrations...
2020-11-05 13:11:08,861 - microstack_init - INFO - restarting libvirt and virtlogd ...
2020-11-05 13:11:38,969 - microstack_init - INFO - Complete. Marked microstack as initialized!
$ sudo microstack add-compute
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
cmd()
File "/snap/
add_compute()
File "/snap/
app_cred = _create_
File "/snap/
return keystone_
File "/snap/
return super(Applicati
File "/snap/
return f(*args, **new_kwargs)
File "/snap/
return self._post(
File "/snap/
resp, body = self.client.
File "/snap/
return self.request(url, 'POST', **kwargs)
File "/snap/
resp = super(LegacyJso
File "/snap/
return self.session.
File "/snap/
raise exceptions.
keystoneauth1.
Billy Olsen (billy-olsen) wrote : | #2 |
Merge proposal - https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit d7f3c1229f6be56
Author: Billy Olsen <email address hidden>
Date: Thu Nov 5 20:42:03 2020 -0700
Use UTC for expiration date of tokens
Keystone assumes UTC for expires_at dates when generating auth
tokens, so set the the expires_at to UTC timezone before making
the request.
Change-Id: I55cb6ccf7a8cf7
Closes-Bug: #1903208
Changed in microstack: | |
status: | In Progress → Fix Released |
Changed in microstack: | |
assignee: | nobody → Billy Olsen (billy-olsen) |
I can recreate this on my machine. It appears to be due to not passing an iso timestamp with timezone information in the keystone authtoken request (used for clustering).
A local rebuild of microstack with setting the requested expiration timestamp to UTC resolves the problem.