Shotgun should collect info about installed packages in containers

Bug #1511730 reported by Vladimir Kozhukalov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Andrey Tykhonov

Bug Description

Shotgun should collect info about installed packages in containers. Currently it runs rpm -qa command which is not enough because we need to do this inside all docker containers.

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

if command will be executed as a remote command (due to utils.is_local improper detection),

then we just need to add new commands such as:

https://github.com/openstack/fuel-web/blob/master/nailgun/nailgun/settings.yaml#L781-L783

> command: dockerctl shell <container_name> rpm -qa

To ensure that command will be executed always as remote, we should add new parameter like 'remote' to Command object.

and specify `remote: true` for all commands which work within container.

The reason is simple. If shotgun executes command locally, it will be executed in mcollective container. Otherwise, shotgun will execute remote command by ssh on the host container thus allowing us to look into another containers.

Changed in fuel:
milestone: none → 8.0
tags: added: low-hanging-fruit
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Andrey Tykhonov (atykhonov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to shotgun (master)

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

Changed in fuel:
status: Confirmed → In Progress
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
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/244052

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Andrey Tykhonov (<email address hidden>) on branch: master
Review: https://review.openstack.org/244052
Reason: Is not required anymore.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to shotgun (master)

Reviewed: https://review.openstack.org/241271
Committed: https://git.openstack.org/cgit/openstack/shotgun/commit/?id=a3d413d1ca411ddd5c26c850932b99c5e33ca17f
Submitter: Jenkins
Branch: master

commit a3d413d1ca411ddd5c26c850932b99c5e33ca17f
Author: Andrey Tykhonov <email address hidden>
Date: Tue Nov 3 17:57:16 2015 +0200

    Avoid usage of `localhost` and `127.0.0.1`

    * Avoid usage of `localhost` and `127.0.0.1`;
    * For a remote command execution either `address` or `hostname` could
     be used;
    * Execute a command on a shotgun' host if neither `address` nor
      `hostname` is specified;

    Change-Id: Iac1d9ea37400e4d202a9bc673c5fa3d3d185701b
    Partial-Bug: #1511730
    Partial-Bug: #1517844

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/254850

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/254850
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=2ccb8e09fcfbe002fdc6743a7356d0aa1365d97f
Submitter: Jenkins
Branch: master

commit 2ccb8e09fcfbe002fdc6743a7356d0aa1365d97f
Author: Andrey Tykhonov <email address hidden>
Date: Tue Dec 8 18:27:21 2015 +0200

    Collect info about installed packages in containers

    Change-Id: I1ba71a2f1979c26e1fad1da92c107ab8003474bf
    Closes-bug: #1511730

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

Verified on ISO #327

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "327"
  build_id: "327"
  fuel-nailgun_sha: "ec25ae8df28e1f1d87da653c5aab2711dff729f6"
  python-fuelclient_sha: "7c7a756fb6a3d091851c060003a2965c67aa353d"
  fuel-agent_sha: "d354cbe61b055db848a15ce66fb7ae92178d2c0a"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "c56dfde2da034151a7e707b381c4cf9d213b4ba2"
  fuel-library_sha: "bcc3d042a47547f6ad826360a85ef21dcaf25882"
  fuel-ostf_sha: "b2ebf15a3530b5c7b57707acf8642c1c3ac71bd8"
  fuel-mirror_sha: "8100acb3a566358d0d4ecc66de32d39626263028"
  fuelmenu_sha: "2942a85796d37f09ba8c8c6d762d8813292cf0d4"
  shotgun_sha: "cacb93cbc28910ff0dc38f30a855efa9af50d8ce"
  network-checker_sha: "d443ef47abeda58d319bc8d33d5005dd09440a02"
  fuel-upgrade_sha: "718aa3d7021fee2970f0fa6791cf5188578cc516"
  fuelmain_sha: "3faa824728ce60734abe602ff3778976f8a16eed"

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.