KeyError: 'processor_architecture' on ./stack.sh

Bug #1598525 reported by Lorin Hochstein
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned
neutron
Fix Released
Critical
Unassigned

Bug Description

./stack.sh failed with the following error on an ubuntu/trusty64 Vagrant VM:

...
+tools/install_pip.sh:install_get_pip:79 sudo -H -E python /home/vagrant/devstack/files/get-pip.py -c /home/vagrant/devstack/tools/cap-pip.txt
Collecting pip!=8 (from -c /home/vagrant/devstack/tools/cap-pip.txt (line 1))
...
Collecting testrepository===0.0.20 (from -c /opt/stack/requirements/upper-constraints.txt (line 346))
  Downloading testrepository-0.0.20.tar.gz (84kB)
    100% |################################| 92kB 9.5MB/s
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 310, in run
    wb.build(autobuilding=True)
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 750, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 370, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 601, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 127, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 397, in run_egg_info
    self.setup_py, self.name,
  File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 372, in setup_py
    import setuptools # noqa
  File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 14, in <module>
    from setuptools.extension import Extension
  File "/usr/local/lib/python2.7/dist-packages/setuptools/extension.py", line 11, in <module>
    from . import msvc
  File "/usr/local/lib/python2.7/dist-packages/setuptools/msvc.py", line 244, in <module>
    class PlatformInfo:
  File "/usr/local/lib/python2.7/dist-packages/setuptools/msvc.py", line 253, in PlatformInfo
    current_cpu = safe_env['processor_architecture'].lower()
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'processor_architecture'

local.conf:

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

$ uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Mohammad Waseem Akhtar (gtalk-waseem) wrote :

Even I am facing this issue while devstack installation on my vagrant machine.
Following are my settings in local.conf:

[[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=supersecret
DATABASE_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl

====
uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-91-generic #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Saverio Proto (zioproto) wrote :

There's a problem in setuptools 24.0.0 (released today).

You can reproduce it just running on the shell easy_install:

# easy_install
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 7, in <module>
    from setuptools.command.easy_install import main
  File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 14, in <module>
    from setuptools.extension import Extension
  File "/usr/local/lib/python2.7/dist-packages/setuptools/extension.py", line 11, in <module>
    from . import msvc
  File "/usr/local/lib/python2.7/dist-packages/setuptools/msvc.py", line 244, in <module>
    class PlatformInfo:
  File "/usr/local/lib/python2.7/dist-packages/setuptools/msvc.py", line 253, in PlatformInfo
    current_cpu = safe_env['processor_architecture'].lower()
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'processor_architecture'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to devstack (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/336919

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

The Neutron functional and fullstack jobs are affected too.

Changed in neutron:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Henry Gessau (gessau) wrote :

I proposed a requirements exclusion: https://review.openstack.org/336944

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

SEtuptools 24.0.1 was released to address this.

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

And our images have been updated, so this should be fine *now* - if not, please tell on #openstack-infra.

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

Change abandoned by Saverio Proto (<email address hidden>) on branch: master
Review: https://review.openstack.org/336919
Reason: fixed upstream in setuptools

no longer affects: ironic
Revision history for this message
Mohammad Waseem Akhtar (gtalk-waseem) wrote :

I am still seeing the issue. I am re-running ./stack.sh . But still facing following error

  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'processor_architecture'

It's mentioned above that SEtuptools 24.0.1 was released but it didn't get solved. May I know if I am missing here something.

FYI, I cloned devstack again and ran ./stack.sh

Revision history for this message
Mohammad Waseem Akhtar (gtalk-waseem) wrote :

After doing following update:

curl https://bootstrap.pypa.io/ez_setup.py -o - | python

Its working now.

Revision history for this message
Brandon Logan (brandon-logan) wrote :
Changed in neutron:
status: Confirmed → Fix Released
Matt Riedemann (mriedem)
Changed in devstack:
status: New → Invalid
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.