Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue.1111.master #1113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jgruber
Copy link
Contributor

@jgruber jgruber commented Nov 29, 2017

@richbrowne

What issues does this address?

Fixes #1111
...

What's this change do?

Adds the template stdeb.cfg file back and adds the build Dockerfile and script for Ubuntu LTS 16.04

Where should the reviewer start?

On a machine with git and docker properly install, from the repository directory run:

./f5-openstack-agent-dist/scripts/package_agent.sh "ubuntu" "14.04"
./f5-openstack-agent-dist/scripts/package_agent.sh "ubuntu" "16.04"

Any background context?

Copy link
Contributor

@richbrowne richbrowne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to include the stdeb.cfg and setup.cfg files? If not, I would remove them. The other stuff looks fine.

@jgruber
Copy link
Contributor Author

jgruber commented Nov 30, 2017

On a clean clone of f5-openstack-agent in the 'mitaka' branch I get this:

$python ./f5-openstack-agent-dist/scripts/universal_truth.py 
Traceback (most recent call last):
  File "./f5-openstack-agent-dist/scripts/universal_truth.py", line 63, in <module>
    main()
  File "./f5-openstack-agent-dist/scripts/universal_truth.py", line 57, in main
    edit_setups(cfg)
  File "./f5-openstack-agent-dist/scripts/universal_truth.py", line 50, in edit_setups
    construct_setups._construct_cfgs_from_json(cfg)
  File "/tmp/f5-openstack-agent/f5-openstack-agent-dist/scripts/construct_setups.py", line 69, in _construct_cfgs_from_json
    _construct_file(rpm.setup, rpm.reqs, rpm.fmt, rpm.start)
  File "/tmp/f5-openstack-agent/f5-openstack-agent-dist/scripts/construct_setups.py", line 182, in _construct_file
    name = str(req.name)
AttributeError: Requirement instance has no attribute 'name'
An error occurred: Requirement instance has no attribute 'name'

An no deb_dist/stdeb.cfg is written.

Let me know what the proper 'build' process should look like and we can get rid of the setup files as long as they are written properly.

@jgruber
Copy link
Contributor Author

jgruber commented Nov 30, 2017

The output of pip parse_request which is what is 'missing' the name attribute is a string:

Requirement.parse('f5-sdk==2.3.3')

@richbrowne
Copy link
Contributor

John, what version of pip is in your system? Are you building in Linux? Maybe Ubuntu?

@jgruber
Copy link
Contributor Author

jgruber commented Dec 1, 2017

Clean Ubuntu host build.. 16.04.3. I'll upgrade pip and let you know..

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

$ uname -a
Linux buildhost 4.4.0-75-generic #96-Ubuntu SMP Thu Apr 20 09:56:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ pip --version
pip 7.1.2 from /usr/lib/python2.7/dist-packages (python 2.7)

@richbrowne
Copy link
Contributor

richbrowne commented Dec 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants