centos 7.1 build 12 : fab setup_all failed since enabling service 'mariadb' failed

Bug #1608877 reported by Pavana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
High
Nagendra Prasath
Trunk
Fix Committed
High
Nagendra Prasath

Bug Description

On Centos7.1, fab setup_all failed while executing 'sudo keystone-server-setup.sh' where enabling service ( mariadb ) failed.
Seeing this on both single node and multi node setups.

2016-08-01 19:58:56:097386: [root@10.204.216.232] out: [localhost] local: sudo keystone-server-setup.sh
2016-08-01 19:58:56:104948: [root@10.204.216.232] out: + '[' -f /etc/redhat-release ']'
2016-08-01 19:58:56:136894: [root@10.204.216.232] out: + is_redhat=1
2016-08-01 19:58:56:137108: [root@10.204.216.232] out: + is_ubuntu=0
2016-08-01 19:58:56:137260: [root@10.204.216.232] out: + web_svc=httpd
2016-08-01 19:58:56:137389: [root@10.204.216.232] out: ++ get_mysql_service_name
2016-08-01 19:58:56:137506: [root@10.204.216.232] out: ++ '[' -e /usr/lib/systemd/system/mariadb.service ']'
2016-08-01 19:58:56:137648: [root@10.204.216.232] out: ++ echo mariadb
2016-08-01 19:58:56:137774: [root@10.204.216.232] out: + mysql_svc=mariadb
2016-08-01 19:58:56:137890: [root@10.204.216.232] out: + openstack_services_contrail=
2016-08-01 19:58:56:138003: [root@10.204.216.232] out: + openstack_services_keystone=openstack-keystone
2016-08-01 19:58:56:138116: [root@10.204.216.232] out: + '[' -f /etc/lsb-release ']'
2016-08-01 19:58:56:138228: [root@10.204.216.232] out: + '[' 0 -eq 1 ']'
2016-08-01 19:58:56:138340: [root@10.204.216.232] out: ++ rpm -q '--queryformat=%{VERSION}' openstack-keystone
2016-08-01 19:58:56:138454: [root@10.204.216.232] out: + keystone_version=2015.1.1
2016-08-01 19:58:56:203065: [root@10.204.216.232] out: ++ cat /proc/sys/net/ipv4/ip_local_reserved_ports
2016-08-01 19:58:56:203291: [root@10.204.216.232] out: + sysctl -w net.ipv4.ip_local_reserved_ports=35357,35358,9322,33306,35357-35358
2016-08-01 19:58:56:203444: [root@10.204.216.232] out: net.ipv4.ip_local_reserved_ports = 35357,35358,9322,33306,35357-35358
2016-08-01 19:58:56:203600: [root@10.204.216.232] out: + grep '^net.ipv4.ip_local_reserved_ports' /etc/sysctl.conf
2016-08-01 19:58:56:203780: [root@10.204.216.232] out: + '[' 0 -ne 0 ']'
2016-08-01 19:58:56:203896: [root@10.204.216.232] out: + sed -i 's/net.ipv4.ip_local_reserved_ports\s*=\s*/net.ipv4.ip_local_reserved_ports=35357,35358,/' /etc/sysctl.conf
2016-08-01 19:58:56:204010: [root@10.204.216.232] out: + update_services action=enable mariadb
2016-08-01 19:58:56:204122: [root@10.204.216.232] out: + exit_on_error=True
2016-08-01 19:58:56:204229: [root@10.204.216.232] out: + eval action=enable
2016-08-01 19:58:56:204337: [root@10.204.216.232] out: ++ action=enable
2016-08-01 19:58:56:204443: [root@10.204.216.232] out: + [[ -z enable ]]
2016-08-01 19:58:56:204549: [root@10.204.216.232] out: + [[ -z True ]]
2016-08-01 19:58:56:204682: [root@10.204.216.232] out: ++ echo True
2016-08-01 19:58:56:204792: [root@10.204.216.232] out: ++ tr '[:upper:]' '[:lower:]'
2016-08-01 19:58:56:204901: [root@10.204.216.232] out: + exit_on_error=true
2016-08-01 19:58:56:205007: [root@10.204.216.232] out: + for service_name in '"${@:2}"'
2016-08-01 19:58:56:205115: [root@10.204.216.232] out: ++ is_ubuntu
2016-08-01 19:58:56:205223: [root@10.204.216.232] out: ++ '[' -f /etc/lsb-release ']'
2016-08-01 19:58:56:205329: [root@10.204.216.232] out: ++ echo False
2016-08-01 19:58:56:205434: [root@10.204.216.232] out: + '[' False == False ']'
2016-08-01 19:58:56:205540: [root@10.204.216.232] out: + systemctl action=enable mariadb
2016-08-01 19:58:56:205690: [root@10.204.216.232] out: Unknown operation 'action=enable'.
2016-08-01 19:58:56:205805: [root@10.204.216.232] out: + '[' 1 '!=' 0 ']'
2016-08-01 19:58:56:205913: [root@10.204.216.232] out: + '[' true '!=' false ']'
2016-08-01 19:58:56:206018: [root@10.204.216.232] out: + echo 'ERROR: enable service ( mariadb ) failed!'
2016-08-01 19:58:56:206126: [root@10.204.216.232] out: ERROR: enable service ( mariadb ) failed!
2016-08-01 19:58:56:206252: [root@10.204.216.232] out: + exit 1
2016-08-01 19:58:56:206364: [root@10.204.216.232] out:
2016-08-01 19:58:56:206470: [root@10.204.216.232] out: Fatal error: local() encountered an error (return code 1) while executing 'sudo keystone-server-setup.sh'
2016-08-01 19:58:56:206581: [root@10.204.216.232] out:
2016-08-01 19:58:56:206704: [root@10.204.216.232] out: Aborting.
2016-08-01 19:58:56:206806: [root@10.204.216.232] out:
2016-08-01 19:58:56:224529:

Contrail logs location - /cs-shared/test_runs/nodek12/2016_08_01_19_51_22

Pavana (pavanap)
Changed in juniperopenstack:
importance: Undecided → High
information type: Proprietary → Public
tags: added: blocker
Revision history for this message
Jeba Paulaiyan (jebap) wrote :
tags: added: sanity
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22767
Submitter: Nagendra Prasath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22769
Submitter: Nagendra Prasath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22767
Committed: http://github.org/Juniper/contrail-provisioning/commit/dbf51d0528ab21f140b4262f8d2b11cd89e0ce2d
Submitter: Zuul
Branch: R3.1

commit dbf51d0528ab21f140b4262f8d2b11cd89e0ce2d
Author: Nagendra Chandran <email address hidden>
Date: Tue Aug 2 11:09:49 2016 -0700

Updating action on update_services
Closes-Bug: 1608877

Change-Id: I3fa55d7f734a8769f355f9707589b5511a87a087

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22769
Committed: http://github.org/Juniper/contrail-provisioning/commit/8f57dc85f4f0c74927f19896df1c684fdaf48855
Submitter: Zuul
Branch: master

commit 8f57dc85f4f0c74927f19896df1c684fdaf48855
Author: Nagendra Chandran <email address hidden>
Date: Tue Aug 2 11:12:42 2016 -0700

Updating action on update_services
Closes-Bug: 1608877

Change-Id: Ice094211b047d478da24b5142214d177ca58689a

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.