[bionic] n-c-c charm tries to write an init disable file when the /etc/init dir does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Cloud Controller Charm |
Fix Released
|
High
|
Frode Nordahl |
Bug Description
[bionic] n-c-c charm tries to write an init disable file when the /etc/init dir does not exist
This is an arm64 deployment.
2018-04-18 15:30:19 INFO juju-log Disabling services into db relation joined
2018-04-18 15:30:19 DEBUG worker.uniter.jujuc server.go:178 running hook tool "status-set"
2018-04-18 15:30:20 DEBUG worker.uniter.jujuc server.go:178 running hook tool "juju-log"
2018-04-18 15:30:20 DEBUG juju-log 0 section(s) found
2018-04-18 15:30:20 DEBUG install Traceback (most recent call last):
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install main()
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install hooks.execute(
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install self._hooks[
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install return f(*args, **kwargs)
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install disable_services()
2018-04-18 15:30:20 DEBUG install File "/var/lib/
2018-04-18 15:30:20 DEBUG install with open('/
2018-04-18 15:30:20 DEBUG install IOError: [Errno 2] No such file or directory: '/etc/init/
2018-04-18 15:30:20 ERROR juju.worker.
...
130 jenkins@
Model Controller Cloud/Region Version SLA
arm64-mosci-
App Version Status Scale Charm Store Rev OS Notes
nova-cloud-
Unit Workload Agent Machine Public address Ports Message
nova-cloud-
Machine State DNS Inst id Series AZ Message
2 started 10.245.168.25 qmwcqs bionic default Deployed
2/lxd/3 started 10.245.168.46 juju-9c4e2c-2-lxd-3 bionic default Container started
Relation provider Requirer Interface Type Message
cinder:
glance:
keystone:
mysql:shared-db nova-cloud-
neutron-
neutron-
nova-cloud-
nova-compute:
rabbitmq-
Changed in charm-nova-cloud-controller: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Frode Nordahl (fnordahl) |
Changed in charm-nova-cloud-controller: | |
milestone: | none → 18.05 |
Changed in charm-nova-cloud-controller: | |
status: | Fix Committed → Fix Released |
The problematic bits are in hooks/nova_ cc_utils. py enable_services() and disable_services() functions. These can and should probably be replaced by respective helpers from charm-helpers.