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

[OSPRH-12761] Add openstack_init target #963

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,18 @@ openstack_wait: openstack ## waits openstack CSV to succeed.
$(eval $(call vars,$@,openstack))
timeout $(TIMEOUT) bash -c 'until $$(oc get csv -l operators.coreos.com/openstack-operator.openstack-operators -n ${OPERATOR_NAMESPACE} | grep -q Succeeded); do sleep 1; done'


# creates the new initialization resource for our operators
.PHONY: openstack_init
openstack_init: openstack_wait openstack_deploy_cleanup openstack_repo
oc create -f ${OPERATOR_BASE_DIR}/openstack-operator/config/samples/operator_v1beta1_openstack.yaml
oc wait openstack/openstack -n ${OPERATOR_NAMESPACE} --for condition=Ready --timeout=${TIMEOUT}

.PHONY: openstack_cleanup
openstack_cleanup: operator_namespace## deletes the operator, but does not cleanup the service resources
$(eval $(call vars,$@,openstack))
${CLEANUP_DIR_CMD} ${OPERATOR_DIR}
if oc get openstack &>/dev/null; then oc delete --ignore-not-found=true openstack/openstack; fi
oc delete subscription --all=true
oc delete csv --all=true
oc delete catalogsource --all=true
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ install using the redhat-marketplace
REDHAT_OPERATORS=true make openstack
```

* create the initialization resource (this deploys the operators)
```bash
make openstack_init
```

**Note** this will also run the openstack_prep target, which if NETWORK_ISOLATION == true will install nmstate and metallb operator, configure the secondary interface of the crc VM via nncp, creates the network-attachment-definitions for datacentre, internalapi, storage and tenant network. Also the metallb l2advertisement and the ipaddresspools get created.

The following NADs with ip ranges get configured:
Expand Down