Skip to content

Conversation

@sadasu
Copy link
Contributor

@sadasu sadasu commented Mar 8, 2019

No description provided.

08_deploy_bmo.sh Outdated
oc --as system:admin --config ocp/auth/kubeconfig apply -f deploy/crds/metalkube_v1alpha1_baremetalhost_crd.yaml

export OPERATOR_NAME=baremetal-operator
operator-sdk up local --namespace=bmo-project
Copy link
Member

Choose a reason for hiding this comment

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

This is going to run the operator on the local host, and block the installer. You can replace lines 15 and 16 with something like

oc --as system:admin --config ocp/auth/kubeconfig apply -f deploy/operator.yaml

That will launch the most recent version of the operator using the image referenced in the operator.yaml file.

@derekhiggins
Copy link
Collaborator

Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/154/

@dhellmann
Copy link
Member

I think you can remove the WIP from the commit message. You mentioned wanting to update the README, and I think that's good. As we discussed, you should update the Makefile, too, so that the operator is always installed.

@derekhiggins
Copy link
Collaborator

Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/160/

@@ -0,0 +1,13 @@
# Install operator-sdk for use by the baremetal-operator
Copy link

Choose a reason for hiding this comment

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

This could probably go in 03_ocp_repo_sync.sh where we clone various other things, fine to leave it as a separate file if you prefer though

08_deploy_bmo.sh Outdated
source bmo_install_prereqs.sh
# Get the latest bits for baremetal-operator
go get github.com/metalkube/baremetal-operator
export BMOPATH=~/go/src/github.com/metalkube/baremetal-operator
Copy link

Choose a reason for hiding this comment

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

This should use GOPATH not ~

Copy link

Choose a reason for hiding this comment

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

And similar to the comment below we could use 03_ocp_repo_sync.sh to get the repo vs go get, the original idea was that we'd clone everything needed there so that test iterations on the other scripts during development could be faster.

@sadasu
Copy link
Contributor Author

sadasu commented Mar 11, 2019

Incorporated all review comments. Running commands within 08_deploy_bmo.sh are resulting in the following error(s):
[stack@dell-r630-003 dev-scripts]$ oc --config ocp/auth/kubeconfig new-project bmo-project
Error from server (NotFound): the server could not find the requested resource (get projectrequests.project.openshift.io)
[stack@dell-r630-003 dev-scripts]$ oc --as system:admin --config ocp/auth/kubeconfig new-project bmo-project
Error from server (Forbidden): projectrequests.project.openshift.io is forbidden: User "system:admin" cannot list resource "projectrequests" in API group "project.openshift.io" at the cluster scope

After tests run successfully:

  1. Will update Makefile to include 08_deploy_bmo.sh as the last step.
  2. Will update Readme with information about what finnaly ends up happening in Step 8 of the install.

@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/177/

@sadasu sadasu changed the title WIP: Changes to deploy baremetal-operator within the cluster created by dev-scripts. Changes to deploy baremetal-operator within the cluster created by dev-scripts. Mar 11, 2019
@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/178/

@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/179/

@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/180/

@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/187/

@derekhiggins
Copy link
Collaborator

Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/190/

Copy link

@hardys hardys left a comment

Choose a reason for hiding this comment

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

I tested this with the in-progress fixes for the cluster bootstrapping, and it works other than the missing GOPATH mentioned in the comments:

[shardy@tripleodev2 dev-scripts]$ ./08_deploy_bmo.sh 
Error from server (AlreadyExists): project.project.openshift.io "bmo-project" already exists
serviceaccount/baremetal-operator created
role.rbac.authorization.k8s.io/baremetal-operator created
rolebinding.rbac.authorization.k8s.io/baremetal-operator created
customresourcedefinition.apiextensions.k8s.io/baremetalhosts.metalkube.org created
deployment.apps/baremetal-operator created

If you can fix that, I think we can merge this and soon the workarounds for cluster bootstrapping should land to enable folks to test with it.

@hardys
Copy link

hardys commented Mar 13, 2019

Other than to GOPATH issue I mentioned I think this is good to go, @dhellmann any concerns with merging after that gets fixed?

@dhellmann
Copy link
Member

I'm happy to go ahead with this when the GOPATH thing is fixed.

@sadasu
Copy link
Contributor Author

sadasu commented Mar 13, 2019

Both GOPATH and the GOPATH/bin were added in my profile and so didn't run into these issues locally. Thanks for catching it.

@hardys
Copy link

hardys commented Mar 13, 2019

I'm happy to go ahead with this when the GOPATH thing is fixed.

Ok thanks, FYI now that the #159 workaround landed it should be possible to test this when the GOPATH issue is fixed

@hardys hardys merged commit b5e88af into openshift-metal3:master Mar 13, 2019
@derekhiggins
Copy link
Collaborator

Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/209/

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.

4 participants