ntpd is stopped for all nodes

Bug #1394617 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexander Gordeev

Bug Description

Custom ISO with image based provisioning #504.

"build_id": "2014-11-17_17-53-34",
"ostf_sha": "82465a94eed4eff1fc8d8e1f2fb7e9993c22f068",
"build_number": "504",
"auth_required": true,
"api": "1.0",
"nailgun_sha": "8d23d1b1bcd9213a70a40c38c3c1486d215d40b5",
"production": "docker",
"fuelmain_sha": "8d4943d5ead7a894d4af5e10172510fa60eeed84",
"astute_sha": "65eb911c38afc0e23d187772f9a05f703c685896",
"feature_groups": ["mirantis"],
"release": "6.0",
"release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-11-17_17-53-34", "ostf_sha": "82465a94eed4eff1fc8d8e1f2fb7e9993c22f068", "build_number": "504", "api": "1.0", "nailgun_sha": "8d23d1b1bcd9213a70a40c38c3c1486d215d40b5", "production": "docker", "fuelmain_sha": "8d4943d5ead7a894d4af5e10172510fa60eeed84", "astute_sha": "65eb911c38afc0e23d187772f9a05f703c685896", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "8a0ceff90777af75a3f9363a57185e608f3ee10d"}}},
"fuellib_sha": "8a0ceff90777af75a3f9363a57185e608f3ee10d"

1. Create new environment (CentOS, simple mode)
2. Choose nova-network, flat
3. Add controller, compute, cinder
4. Choose image based provisioning
5. Start deployment. It was successful
6. ntpd is stopped for all nodes

[root@fuel ~]# fuel node
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|----------|------------------|---------|------------|-------------------|------------|---------------|--------|---------
1 | ready | Untitled (77:78) | 1 | 10.20.0.3 | 08:00:27:b3:77:78 | controller | | True | 1
10 | ready | Untitled (ec:3c) | 1 | 10.20.0.6 | 08:00:27:53:ec:3c | compute | | True | 1
2 | ready | Untitled (b6:20) | 1 | 10.20.0.4 | 08:00:27:ce:b6:20 | cinder | | True | 1
3 | ready | Untitled (df:aa) | 2 | 10.20.0.5 | 08:00:27:00:df:aa | controller | | True | 2
4 | ready | Untitled (4b:f0) | 2 | 10.20.0.8 | 08:00:27:a9:4b:f0 | compute | | True | 2
5 | ready | Untitled (ef:a2) | 2 | 10.20.0.10 | 08:00:27:4b:ef:a2 | cinder | | True | 2
7 | ready | Untitled (10:84) | 3 | 10.20.0.11 | 08:00:27:55:10:84 | compute | | True | 3
6 | ready | Untitled (45:56) | 3 | 10.20.0.9 | 08:00:27:40:45:56 | controller | | True | 3
8 | ready | Untitled (60:7f) | 3 | 10.20.0.7 | 08:00:27:c5:60:7f | cinder | | True | 3
9 | discover | Untitled (8a:39) | None | 10.20.0.12 | 08:00:27:21:8a:39 | | | True | None
[root@fuel ~]# for x in `seq 1 10`; do echo "node-${x}"; ssh root@node-${x} service --status-all|grep -i ntp; done
node-1
Warning: Permanently added 'node-1' (RSA) to the list of known hosts.
22 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd (pid 6530) is running...
node-2
Warning: Permanently added 'node-2' (RSA) to the list of known hosts.
21 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-3
Warning: Permanently added 'node-3' (RSA) to the list of known hosts.
22 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-4
Warning: Permanently added 'node-4' (RSA) to the list of known hosts.
Usage: /etc/init.d/cpufreq-init.sh start|stop
28 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-5
Warning: Permanently added 'node-5' (RSA) to the list of known hosts.
21 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-6
Warning: Permanently added 'node-6' (RSA) to the list of known hosts.
22 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-7
Warning: Permanently added 'node-7' (RSA) to the list of known hosts.
Usage: /etc/init.d/cpufreq-init.sh start|stop
28 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-8
Warning: Permanently added 'node-8' (RSA) to the list of known hosts.
21 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped
node-9
ssh: Could not resolve hostname node-9: Name or service not known
node-10
Warning: Permanently added 'node-10' (RSA) to the list of known hosts.
Usage: /etc/init.d/cpufreq-init.sh start|stop
28 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd is stopped

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

confirmed on centos, both kvm and vbox env.

waiting for ubuntu to check

summary: - ntpd is stopped for all nodes for VBox
+ ntpd is stopped for all nodes for
description: updated
Changed in fuel:
status: New → Confirmed
summary: - ntpd is stopped for all nodes for
+ ntpd is stopped for all nodes
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

ubuntu isn't affected. So, centos only.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Aleksandr Gordeev (a-gordeev)
tags: added: cloud-init experimental image-based provision
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

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

Reviewed: https://review.openstack.org/136065
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=66f7f8138620ad7dd461633ad2a3e01b80f321ab
Submitter: Jenkins
Branch: master

commit 66f7f8138620ad7dd461633ad2a3e01b80f321ab
Author: Alexander Gordeev <email address hidden>
Date: Thu Nov 20 20:10:01 2014 +0300

    Fix ntpd start on centos in cloud-init boothook

    1) Add forgottent ntpd start into centos's cloud-init boothook.

    2) Toggle ntp server on ubuntu to be sure it will start with correct
    settings.

    3) Fix typo in both boothook files
    ntp(d) must be stopped before syncing date with ntpdate.

    Change-Id: I4e8e912b61a57c84e24e13be10983654bcfec0ab
    Closes-Bug: #1394617

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :
Download full text (4.1 KiB)

Verified on ISO #7

"build_id": "2014-11-25_22-41-00", "ostf_sha": "a35f516f1606b0d03d51ff63bfe3fbe23de4b622", "build_number": "7", "auth_required": true, "api": "1.0", "nailgun_sha": "cbe7b96943d43397dc608a2f6c9dc1af14dd9a48", "production": "docker", "fuelmain_sha": "7db74b9f80180bf3936db1edc4aebfae310d024a", "astute_sha": "c15623d05ccdf7ac10873e7a90df954de8726280", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-11-25_22-41-00", "ostf_sha": "a35f516f1606b0d03d51ff63bfe3fbe23de4b622", "build_number": "7", "api": "1.0", "nailgun_sha": "cbe7b96943d43397dc608a2f6c9dc1af14dd9a48", "production": "docker", "fuelmain_sha": "7db74b9f80180bf3936db1edc4aebfae310d024a", "astute_sha": "c15623d05ccdf7ac10873e7a90df954de8726280", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "8c7eec6225184e0391569b2b5371196ab3e3fa19"}}}, "fuellib_sha": "8c7eec6225184e0391569b2b5371196ab3e3fa19"

[root@fuel ~]# fuel node
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|----------|------------------|---------|------------|-------------------|------------|---------------|--------|---------
5 | ready | Untitled (ed:c9) | 2 | 10.20.0.6 | 8e:58:8a:8f:83:48 | controller | | True | 2
9 | ready | Untitled (38:48) | 2 | 10.20.0.8 | 02:86:ff:8d:28:49 | mongo | | True | 2
7 | ready | Untitled (e4:00) | 2 | 10.20.0.7 | 9a:df:4c:31:89:4b | ceph-osd | | True | 2
6 | ready | Untitled (56:eb) | 2 | 10.20.0.10 | 2a:14:82:d4:20:47 | compute | | True | 2
8 | ready | Untitled (6e:da) | 2 | 10.20.0.11 | de:fc:95:9b:2f:41 | ceph-osd | | True | 2
11 | discover | Untitled (df:72) | None | 10.20.0.4 | 08:00:27:a9:df:72 | | | True | None
12 | discover | Untitled (47:5c) | None | 10.20.0.9 | 08:00:27:e5:47:5c | | | True | None
15 | discover | Untitled (de:43) | None | 10.20.0.5 | 08:00:27:f2:de:43 | | | True | None
13 | discover | Untitled (9c:b5) | None | 10.20.0.3 | 08:00:27:66:9c:b5 | | | True | None
14 | discover | Untitled (08:75) | None | 10.20.0.12 | 08:00:27:25:08:75 | | | True | None
[root@fuel ~]# for x in `seq 5 15`; do echo "node-${x}"; ssh root@node-${x} service --status-all|grep -i ntp; done
node-5
Warning: Permanently added 'node-5' (RSA) to the list of known hosts.
25 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd (pid 1097) is running...
rbd: could not open /sys/bus/rbd/devices: (2) No such file or directory
rbd: showmapped failed: (2) No such file or directory
node-6
Warning: Permanently added 'node-6' (RSA) to the list of known hosts.
Usage: /etc/init.d/cpufreq-init.sh start|stop
26 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 multiport ports 123 /* 112 ntp-server */
ntpd (pid 1146) is r...

Read more...

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.