Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3725

puppet module install does not reinstall a module with missing dependencies

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.3
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
    • Template:

      Description

      Here are the steps to the behavior:

      1. First I manually installed the puppetlabs-openstack module from the tar.gz bundle:

      [root@GG34-2 puppet]# puppet module install --debug --verbose /root/puppet/puppetlabs-openstack-4.2.0.tar.gz --ignore-dependencies

      [root@GG34-2 puppet]# puppet module list --tree
      Warning: Missing dependency 'duritong-sysctl':
      'puppetlabs-openstack' (v4.2.0) requires 'duritong-sysctl' (v0.0.1)
      Warning: Missing dependency 'puppetlabs-apache':
      'puppetlabs-openstack' (v4.2.0) requires 'puppetlabs-apache' (>=1.0.0 <1.2.0)
      :
      Warning: Missing dependency 'puppetlabs-vswitch':
      'puppetlabs-openstack' (v4.2.0) requires 'puppetlabs-vswitch' (>=0.2.0 <1.0.0)
      /etc/puppet/modules
      └─┬ puppetlabs-openstack (v4.2.0)
      ├── UNMET DEPENDENCY puppetlabs-keystone (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-swift (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-cinder (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-glance (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-neutron (>=4.2.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-nova (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-heat (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-ceilometer (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-horizon (>=4.0.0 <5.0.0)
      ├── UNMET DEPENDENCY puppetlabs-ntp (>=3.0.0 <4.0.0)
      ├── UNMET DEPENDENCY puppetlabs-firewall (>=1.0.0 <2.0.0)
      ├── UNMET DEPENDENCY puppetlabs-vswitch (>=0.2.0 <1.0.0)
      ├── UNMET DEPENDENCY puppetlabs-mongodb (>=0.6.0 <1.0.0)
      ├── UNMET DEPENDENCY puppetlabs-mysql (>=2.2.0 <3.0.0)
      ├── UNMET DEPENDENCY puppetlabs-rabbitmq (>=3.0.0 <4.0.0)
      ├── UNMET DEPENDENCY puppetlabs-apache (>=1.0.0 <1.2.0)
      └── UNMET DEPENDENCY duritong-sysctl (v0.0.1)
      /usr/share/puppet/modules (no modules installed)

      2. After that I tried installing the module from puppet forge, which exits since it finds the module already installed.

      [root@GG34-2 puppet]# puppet module install puppetlabs-openstack
      Notice: Preparing to install into /etc/puppet/modules ...
      Notice: Module puppetlabs-openstack 4.2.0 is already installed.
      [root@GG34-2 puppet]#

      The workaround is to uninstall the module and then re-install. But it would be good to make sure that the module is correctly installed with the dependencies met.
      [root@GG34-2 puppet]#
      [root@GG34-2 puppet]# puppet module uninstall puppetlabs-openstack
      Notice: Preparing to uninstall 'puppetlabs-openstack' ...
      Removed 'puppetlabs-openstack' (v4.2.0) from /etc/puppet/modules
      [root@GG34-2 puppet]#
      [root@GG34-2 puppet]#
      [root@GG34-2 puppet]# puppet module install --debug --verbose puppetlabs-opensta
      ck
      Notice: Preparing to install into /etc/puppet/modules ...
      Notice: Downloading from https://forgeapi.puppetlabs.com ...
      Info: Resolving dependencies ...
      Info: Preparing to install ...
      Notice: Installing – do not interrupt ...
      /etc/puppet/modules
      └─┬ puppetlabs-openstack (v4.2.0)
      ├── puppetlabs-ceilometer (v4.2.0)
      ├─┬ puppetlabs-cinder (v4.2.0)
      │ ├── dprince-qpid (v1.0.2)
      │ └─┬ puppetlabs-rabbitmq (v3.1.0)
      │ ├─┬ garethr-erlang (v0.3.0)
      │ │ └── stahnma-epel (v1.0.0)
      │ └── puppetlabs-apt (v1.7.0)
      ├── puppetlabs-glance (v4.2.0)
      ├── puppetlabs-heat (v4.2.0)
      ├── puppetlabs-horizon (v4.2.0)
      ├─┬ puppetlabs-keystone (v4.2.0)
      │ ├─┬ puppetlabs-apache (v1.1.1)
      │ │ ├── puppetlabs-concat (v1.1.2)
      │ │ └── puppetlabs-stdlib (v4.4.0)
      │ ├── puppetlabs-inifile (v1.2.0)
      │ └── puppetlabs-mysql (v2.3.1)
      ├── puppetlabs-mongodb (v0.9.0)
      ├─┬ puppetlabs-neutron (v4.3.0)
      │ ├─┬ puppetlabs-nova (v4.2.0)
      │ │ └── duritong-sysctl (v0.0.1)
      │ └── puppetlabs-vswitch (v0.3.0)
      ├── puppetlabs-ntp (v3.3.0)
      └─┬ puppetlabs-swift (v4.1.0)
      ├─┬ puppetlabs-rsync (v0.3.1)
      │ └── puppetlabs-xinetd (v1.3.1)
      ├─┬ saz-memcached (v2.6.0)
      │ └── puppetlabs-firewall (v1.2.0)
      └── saz-ssh (v1.4.0)
      [root@GG34-2 puppet]# puppt --version
      -bash: puppt: command not found
      [root@GG34-2 puppet]# puppt --version
      -bash: puppt: command not found
      [root@GG34-2 puppet]# puppet --version
      3.7.3

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bdastur Behzad Dastur
            QA Contact:
            Eric Thompson Eric Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support