Upgrade N->O Nova services launch with newton tag and not ocata (systemd issue)

Bug #1682161 reported by Grelaud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Invalid
Undecided
Unassigned

Bug Description

Upgrade Newton 14.1.1 to Ocata 15.1.0

Nova services are not launched with new ocata tag (see attachment).

Exemple:
"sytemctl status nova-conductor" give a warning:

Warning: nova-conductor.service changed on disk. Run 'systemctl daemon-reload' to reload units.

# systemctl daemon-reload
# sytemctl restart nova-service

And nova service are launched with the good tag...

Revision history for this message
Grelaud (fabrice-grelaud) wrote :
Revision history for this message
Grelaud (fabrice-grelaud) wrote :

In nova role, task nova_init_systemd.yml, in the last play "Place the systemd init script", we use notify to restart nova services, we can also notify a reload systemd.

- name: Place the systemd init script
  template:
    src: "nova-systemd-init.j2"
    dest: "/etc/systemd/system/{{ item.value.service_name }}.service"
    mode: "0644"
    owner: "root"
    group: "root"
  with_dict: "{{ nova_services }}"
  when:
    - inventory_hostname in groups[item.value.group]
    - "{{ item.value.condition | default(true) }}"
  notify:
    - Reload systemd daemon <<<<<<<<<<<<<<<<
    - Restart nova services

And add in handlers/main.yml

- name: Reload systemd daemon
  command: "systemctl daemon-reload"

summary: - Upgrade N->O Nova services launch or not in the newton tag (systemd
+ Upgrade N->O Nova services launch with newton tag and not ocata (systemd
issue)
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

This should be fixed with latest Ocata version. See here: https://review.openstack.org/#/c/452327/

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :
Changed in openstack-ansible:
status: New → Invalid
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.