[bug/typo] cdh plugin yum install option "-y" missing

Bug #1566278 reported by JiHyun Song
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Low
JiHyun Song

Bug Description

at sahara/plugins/cdh/commands.py

```
def install_packages(remote, packages, timeout=1800):
    distrib = _get_os_distrib(remote)
    if distrib == 'ubuntu':
        cmd = 'RUNLEVEL=1 apt-get install -y %s'
    elif distrib == 'centos':
        cmd = 'yum install %s'
    else:
        raise ex.HadoopProvisionError(
            _("OS on image is not supported by CDH plugin"))

    cmd = cmd % ' '.join(packages)
    _root(remote, cmd, timeout=timeout)
```

when I install cdh using sahara with CentOS image, it occurs timeout exception because of missing option "-y".

Changed in sahara:
assignee: nobody → JiHyun Song (jihyun-song0829)
Hyun Ha (raymon-ha)
tags: added: sahara
Changed in sahara:
status: New → In Progress
tags: removed: sahara
Changed in sahara:
importance: Undecided → Low
milestone: none → newton-1
tags: added: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

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

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

Reviewed: https://review.openstack.org/307722
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=ac82ffcaad4ee9d959350c4975a54ffe27ed8bdd
Submitter: Jenkins
Branch: master

commit ac82ffcaad4ee9d959350c4975a54ffe27ed8bdd
Author: JiHyunSong <email address hidden>
Date: Tue Apr 19 20:37:37 2016 +0900

    cdh plugin yum install option "-y" missing

    when I install cdh using sahara with CentOS image,
    it occurs timeout exception because of missing option "-y".

    Change-Id: Iee9a5d6ab7868fc426c6a82bc7a45228680f8cc6
    Closes-Bug: #1566278

Changed in sahara:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/sahara 5.0.0.0b1

This issue was fixed in the openstack/sahara 5.0.0.0b1 development milestone.

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.