Bug 1326322

Summary: undercloud installation return error Element 'pip-and-virtualenv' not found
Product: Red Hat OpenStack Reporter: Lan <lan.ling>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: bnemec, kaihua.chen, mburns, rhel-osp-director-maint
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-16 14:22:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lan 2016-04-12 12:14:59 UTC
Description of problem:
RHOSP8 beta environment was previously installed. After do 'yum update -y' for undercloud director with latest version of 'python-tripleoclient-0.3.4-2.el7ost.noarch'
'openstack undercloud upgrade' return error below

ERROR: Element 'pip-and-virtualenv' not found in '/usr/share/tripleo-puppet-elements:/usr/share/instack-undercloud:/usr/share/tripleo-image-elements:/usr/share/diskimage-builder/elements'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 808, in install
    _run_instack(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 692, in _run_instack
    _run_live_command(args, instack_env, 'instack')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 370, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: instack failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

Version-Release number of selected component (if applicable):
openstack undercloud upgrade

How reproducible:
always

Steps to Reproduce:
1. Existing system with RHOSP8 beta
2.  'yum update -y' and check the director package as 'python-tripleoclient-0.3.4-2.el7ost.noarch'

3. do 'openstack undercloud upgrade' or 'openstack undercloud install'

Actual results:
undercloud install or upgrade return error

Expected results:
no error

Additional info:

Comment 2 Mike Burns 2016-04-12 12:23:22 UTC
This is because you have the EPEL version of diskimage-builder installed.  Please confirm that you have a version with .el7ost and not .el7 and disable EPEL on your undercloud node.

*** This bug has been marked as a duplicate of bug 1325417 ***

Comment 3 Lan 2016-04-13 02:38:50 UTC
Hi
   I checked our system, we do have the correct version of mentioned package. So the root cause in our case is different, I am re-open the case

[stack@director ~]$ rpm -qa |grep diskimage-builder
diskimage-builder-1.5.0-1.el7ost.noarch

Regards
Ling Lan

Comment 4 Lan 2016-04-14 02:01:56 UTC
any update pls?

Comment 6 Ben Nemec 2017-03-15 22:57:09 UTC
We don't support upgrading from beta code, do we?  It wouldn't surprise me at all if that had something to do with this.  Mike, can you confirm that this is not a supported use case?

Comment 7 Mike Burns 2017-03-16 12:17:45 UTC
(In reply to Ben Nemec from comment #6)
> We don't support upgrading from beta code, do we?  It wouldn't surprise me
> at all if that had something to do with this.  Mike, can you confirm that
> this is not a supported use case?

No, Beta to GA updates are not supported.

Comment 8 Ben Nemec 2017-03-16 14:22:24 UTC
Okay, thanks.  I'm closing this bug then.  Please feel free to open a new one if the same problem happens when starting with GA code.