[system-tests][fuel-devops] Sync-time process failed on iso with systemd

Bug #1523523 reported by Vladimir Khlyunev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dennis Dmitriev

Bug Description

ISO 263
Snapshot not required

Step to reproduce:
Try to revert the env

Result:
Time synchronization is starting
Traceback (most recent call last):
  File "/home/jenkins/venv-nailgun-tests-2.9/bin/dos.py", line 22, in <module>
    main()
  ...
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/devops/helpers/ntp.py", line 180, in get_ntp
    cls.service = remote.execute(cmd)['stdout'][0].strip()
IndexError: list index out of range
(full trace http://paste.openstack.org/show/481026/)

Tags: area-qa
Changed in fuel:
status: New → Confirmed
Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Systemd-based operation systems have a different approach to manage system services.

Previously, the script to manage ntpd service was located in this way:

find /etc/init.d/ -regex '/etc/init.d/ntp.?'

For systemd, we should use 'systemctl start/stop ntpd'.

Revision history for this message
Kyrylo Galanov (kgalanov) wrote :

I confirm. I have built ISO from master today and I could not deploy environment: http://paste.openstack.org/show/481199/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-devops (master)

Fix proposed to branch: master
Review: https://review.openstack.org/256341

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (master)

Reviewed: https://review.openstack.org/256341
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=9675c34fddd507d84f232e23aa86b7b526c8ce5d
Submitter: Jenkins
Branch: master

commit 9675c34fddd507d84f232e23aa86b7b526c8ce5d
Author: Dennis Dmitriev <email address hidden>
Date: Fri Dec 11 12:54:10 2015 +0200

    Fix time synchronization for nodes with systemd

    Change-Id: I936b9550256c2469e97feb5c58e7fd35a8df84f9
    Closes-Bug:1523523

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-devops (master)

Fix proposed to branch: master
Review: https://review.openstack.org/257213

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (master)

Reviewed: https://review.openstack.org/257213
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=8be97a3edabb96847ec85c5c6b7905d3694c9b0c
Submitter: Jenkins
Branch: master

commit 8be97a3edabb96847ec85c5c6b7905d3694c9b0c
Author: Dennis Dmitriev <email address hidden>
Date: Mon Dec 14 10:24:57 2015 +0200

    Fix time synchronization for nodes with systemd

    Original patch https://review.openstack.org/#/c/256341/
    was overwitten by another commit.

    Change-Id: I994f0d5954eaceb38645169302a535d35f24ceee
    Closes-Bug:1523523

Changed in fuel:
status: Fix Committed → Fix Released
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.