R4.0-OSP10-DPDK provision failed : 'sestatus | grep -i \"Current mode\" | grep -q enforcing' is not qualified and no path was specified

Bug #1716526 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Released
Critical
alexey-mr
Trunk
Fix Released
Critical
alexey-mr

Bug Description

Log:
===
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,252] (heat-config) [INFO] {"deploy_stdout": "\u001b[mNotice: Scope(Class[Tripleo::Firewall::Post]): At this stage, all network traffic is blocked.\u001
b[0m\n\u001b[mNotice: Compiled catalog for overcloud-contraildpdk-0.localdomain in environment production in 2.25 seconds\u001b[0m\n", "deploy_stderr": "exception: connect failed\n\u001b[1;31mError: Parameter onlyif f
ailed on Exec[set selinux to permissive]: 'sestatus | grep -i \"Current mode\" | grep -q enforcing' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppet/modules/cont
rail/manifests/vrouter/install.pp:43\u001b[0m\n", "deploy_status_code": 1}
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,252] (heat-config) [DEBUG] [2017-09-11 18:47:46,502] (heat-config) [DEBUG] Running FACTER_heat_outputs_path="/var/run/heat-config/heat-config-puppet/69
da8f5b-9e3e-453a-8669-73269388e398" FACTER_fqdn="overcloud-contraildpdk-0.localdomain" FACTER_deploy_config_name="ContrailDpdkDeployment_Step1" puppet apply --detailed-exitcodes --logdest console --modulepath /etc/
puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules /var/lib/heat-config/heat-config-puppet/69da8f5b-9e3e-453a-8669-73269388e398.pp
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,247] (heat-config) [INFO] Return code 1
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,248] (heat-config) [INFO] #033[mNotice: Scope(Class[Tripleo::Firewall::Post]): At this stage, all network traffic is blocked.#033[0m
Sep 11 18:47:53 localhost os-collect-config: #033[mNotice: Compiled catalog for overcloud-contraildpdk-0.localdomain in environment production in 2.25 seconds#033[0m
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,248] (heat-config) [INFO] exception: connect failed
Sep 11 18:47:53 localhost os-collect-config: #033[1;31mError: Parameter onlyif failed on Exec[set selinux to permissive]: 'sestatus | grep -i "Current mode" | grep -q enforcing' is not qualified and no path was specif
ied. Please qualify the command or specify a path. at /etc/puppet/modules/contrail/manifests/vrouter/install.pp:43#033[0m
Sep 11 18:47:53 localhost os-collect-config: [2017-09-11 18:47:53,248] (heat-config) [ERROR] Error running /var/lib/heat-config/heat-config-puppet/69da8f5b-9e3e-453a-8669-73269388e398.pp. [1]

Script location failed:
=====

if $is_dpdk {
    exec { 'set selinux to permissive' :
      command => '/sbin/setenforce permissive',
      onlyif => 'sestatus | grep -i "Current mode" | grep -q enforcing', === > failed while executing this
    }

Heat deployment log:
==================
2017-09-11 22:47:57Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1.1]: SIGNAL_IN_PROGRESS Signal: deployment 38bf7c6a-23c2-45c8-8e5f-17eae674e760 succeeded
2017-09-11 22:47:57Z [overcloud.AllNodesDeploySteps.ContrailDpdkDeployment_Step1.0]: CREATE_FAILED Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 1
2017-09-11 22:47:57Z [overcloud.AllNodesDeploySteps.ContrailDpdkDeployment_Step1]: CREATE_FAILED Resource CREATE failed: Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 1
2017-09-11 22:47:58Z [overcloud.AllNodesDeploySteps.ContrailDpdkDeployment_Step1]: CREATE_FAILED Error: resources.ContrailDpdkDeployment_Step1.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 1
2017-09-11 22:47:58Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:01Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1.1]: CREATE_COMPLETE state changed
2017-09-11 22:48:02Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1.2]: SIGNAL_IN_PROGRESS Signal: deployment cc67b4a4-e7ec-4c24-bf12-9b7a8e55e026 succeeded
2017-09-11 22:48:02Z [overcloud.AllNodesDeploySteps.ControllerArtifactsDeploy.2]: SIGNAL_IN_PROGRESS Signal: deployment 8a950925-8b0e-43c7-bc4c-394ac8f4b7f4 succeeded
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1.0]: SIGNAL_IN_PROGRESS Signal: deployment 2ccdd721-5a75-4855-a989-200f4048be7d succeeded
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailControllerDeployment_Step1.2]: SIGNAL_IN_PROGRESS Signal: deployment fc6c94ac-3eb6-41e1-9792-8920e9775d5a succeeded
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailControllerDeployment_Step1]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailControllerDeployment_Step1.2]: CREATE_COMPLETE state changed
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1.1]: SIGNAL_IN_PROGRESS Signal: deployment f2c9f39e-057b-432e-a58e-544e98a3bfba succeeded
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1.0]: CREATE_COMPLETE state changed
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1.2]: CREATE_COMPLETE state changed
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ControllerArtifactsDeploy]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailControllerDeployment_Step1]: CREATE_COMPLETE Stack CREATE completed successfully
2017-09-11 22:48:03Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDatabaseDeployment_Step1]: CREATE_COMPLETE Stack CREATE completed successfully
2017-09-11 22:48:04Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1.1]: CREATE_COMPLETE state changed
2017-09-11 22:48:04Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1]: CREATE_COMPLETE Stack CREATE completed successfully
2017-09-11 22:48:04Z [overcloud.AllNodesDeploySteps.ControllerPrePuppet]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps.ControllerArtifactsDeploy.2]: CREATE_COMPLETE state changed
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps.ControllerArtifactsDeploy]: CREATE_FAILED Resource CREATE failed: Operation cancelled
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps.ContrailAnalyticsDeployment_Step1]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps]: CREATE_FAILED Resource CREATE failed: Error: resources.ContrailDpdkDeployment_Step1.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 1
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps.ControllerPrePuppet.ControllerPrePuppetMaintenanceModeDeployment]: CREATE_FAILED CREATE aborted
2017-09-11 22:48:05Z [overcloud.AllNodesDeploySteps.ControllerPrePuppet]: CREATE_FAILED Resource CREATE failed: Operation cancelled
2017-09-11 22:48:06Z [overcloud.AllNodesDeploySteps]: CREATE_FAILED Error: resources.AllNodesDeploySteps.resources.ContrailDpdkDeployment_Step1.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 1
2017-09-11 22:48:06Z [overcloud]: CREATE_FAILED Resource CREATE failed: Error: resources.AllNodesDeploySteps.resources.ContrailDpdkDeployment_Step1.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 1

 Stack overcloud CREATE_FAILED

Heat Stack create failed.

shajuvk (shajuvk)
information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: provisioning
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/35529
Submitter: alexey-mr (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/35529
Committed: http://github.com/Juniper/puppet-contrail/commit/50e4e9b8d5289499cd4e9da4295cb3594c0060cb
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 50e4e9b8d5289499cd4e9da4295cb3594c0060cb
Author: alexey-mr <email address hidden>
Date: Tue Sep 12 16:48:15 2017 +0300

Fix path for sestatus tool for setting selinux mode in DPDK case

Change-Id: I2ff860890a5e519c826bb033a96d94ac567b693a
Closes-Bug: #1716526

kratna (kratna)
tags: added: cc2.0
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.