setup_repositories does not properly depend on rsync_core_puppet

Bug #1580295 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
New
High
Fuel Toolbox
Mitaka
New
High
Fuel Toolbox
Newton
New
High
Fuel Toolbox

Bug Description

Since the setup_repositories task has been moved to library, it does not properly depend on the puppet core sync task. If you attempt to configure 0 controllers and leverage a custom plugin to setup a node prior to controller deployment, the node will fail because setup_repositories fails with:

2016-05-10 18:15:14 +0000 Puppet (err): Could not run: Could not find file /etc/puppet/modules/osnailyfacter/modular/fuel_pkgs/setup_repositories.pp

Steps to reproduce:
1) create plugin with a new role to do basic setup tasks through netconfig. Here is an example group for the deployment_tasks.yaml:
- id: fuel-plugin-something
  type: group
  version: 2.0.0
  role: [primary-something-controller, something-controller, something-else]
  tasks: &common_tasks
    - hiera
    - setup_repositories
    - fuel_pkgs
    - globals
    - tools
    - logging
    - netconfig
    - hosts
  requires: [deploy_start]
  required_form: [deploy_end]
  parameters:
    strategy:
      type: parallel

2) update environment to set min controller requirements to 0
3) apply new role to some nodes
4) deploy

Expected results:
The nodes should be deployed successfully with tasks up to netconfig.

Actual results:
Nodes fail on setup_repositories due to missing file that hasn't been synced yet.

summary: - setup_repositories does not properly depend on rsync_core_puppet
+ setup_repositories and allocate_hugepages do not properly depend on
+ rsync_core_puppet
description: updated
summary: - setup_repositories and allocate_hugepages do not properly depend on
- rsync_core_puppet
+ setup_repositories does not properly depend on rsync_core_puppet
description: updated
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.