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

Install tripleo current repos for Centos 8 #187

Closed

Conversation

elfosardo
Copy link
Member

The correct path for Centos 8 TripleO repos is current and not
current-tripleo.

The correct path for Centos 8 TripleO repos is current and not
current-tripleo.
@metal3-io-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: elfosardo
To complete the pull request process, please assign russellb
You can assign the PR to them by writing /assign @russellb in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 20, 2020
@metal3-io-bot
Copy link
Collaborator

Hi @elfosardo. Thanks for your PR.

I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@elfosardo elfosardo mentioned this pull request Jan 20, 2020
@maelk
Copy link
Member

maelk commented Jan 20, 2020

/ok-to-test

@metal3-io-bot metal3-io-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 20, 2020
@hardys
Copy link
Member

hardys commented Jan 20, 2020

Thanks @elfosardo this looks OK but I took a different approach in #157

Since we now have the vbmc running in a container, the only thing we actually install from RDO AFAICS is ironicclient/openstackclient, so I'm wondering if we should just stop enabling the RDO repos (which is what I did in my PR, instead pip installing the client).

Another approach could be to have an ironic-client container which just contains the client, and this would also be useful for debugging on a cluster where the client may not be installed anywhere?

I actually proposed openshift/ironic-image#17 a while back to add the client to ironic-image, so one option would be to do that in the metal3 image, but perhaps a new smaller image would be preferable?

@maelk any thoughts on the preferred option here, and what would work best for other platforms?

@elfosardo
Copy link
Member Author

@hardys I'm aware of your PR to migrate to Centos8, this was mainly intended as temporary fix for an issue raised in #180
I'm ok with adding a small image with the client, it'll be useful for testing/debugging

@maelk
Copy link
Member

maelk commented Jan 22, 2020

@hardys When it comes to the client, I think the easiest would be to install it with pip in metal3-dev-env. It's the most straightforward from a user perspective. That being said, I really like the idea of having a container image that we could use to debug in certain situations (like on a management cluster that is not in metal3-dev-env)

@hardys
Copy link
Member

hardys commented Jan 23, 2020

@maelk yes agree pip is the easiest, and that's what I did in #157 - some folks have objected to using pip system-wide in the past, but it seems reasonable in this case (we could look at using pip --user in future).

If we're OK with that approach I'll rebase/re-test #157 and we then potentially won't need the RDO repos anymore. If this PR is needed as an immediate fix I'm fine with it though.

@elfosardo
Copy link
Member Author

@hardys I would probably be one of those folks, I never recommend to run pip system wide, better create a virtualenv or restrict to user.
Let's rebase #157 and see how it goes, I can find some time to test it.
This one is not needed immediately.

hardys pushed a commit to hardys/ironic-image that referenced this pull request Jan 27, 2020
In metal3-io/metal3-dev-env#187
we discuss the current usage of the RDO repos, and since
virtualbmc is now containerized, the only things we
install from the RDO repos are the python ironic clients.

For development and debugging, it's helpful to have these
available, and also in real production environments for
collecting debug information (and in this latter case it's
often not possible to e.g pip install some clients, so
having them available in an image already accessible to the
cluster is useful).
hardys pushed a commit to hardys/ironic-image that referenced this pull request Jan 27, 2020
In metal3-io/metal3-dev-env#187
we discuss the current usage of the RDO repos, and since
virtualbmc is now containerized, the only things we
install from the RDO repos are the python ironic clients.

For development and debugging, it's helpful to have these
available, and also in real production environments for
collecting debug information (and in this latter case it's
often not possible to e.g pip install some clients, so
having them available in an image already accessible to the
cluster is useful).

This can be used interactively e.g:

podman run -ti --entrypoint='["/usr/bin/openstack", "baremetal", "node", "list"]' \
  -v /home/shardy/dev-scripts/etc_openstack:/etc/openstack \
  -e OS_CLOUD=$OS_CLOUD localhost/ironic_client

Clearly we could add a shell alias or wrapper function to make this
transparent and act like the current installed client.
@hardys
Copy link
Member

hardys commented Feb 14, 2020

@elfosardo when you get time please see #223 and #215 which I'm proposing as an alternative - with that approach we remove the RDO repo requirement completely for CentOS8

@hardys
Copy link
Member

hardys commented Feb 20, 2020

@elfosardo should we close this one and go with #223 ?

@elfosardo
Copy link
Member Author

obsoleted by #223

@elfosardo elfosardo closed this Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants