Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Packer Openstack Hpc Image
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
Packer Openstack Hpc Image
Commits
a23c80b0
Commit
a23c80b0
authored
9 months ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
fix floating IP creation for OOD deployment
parent
a7776019
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Add OOD proxy node deployment to CI/CD pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-12
6 additions, 12 deletions
.gitlab-ci.yml
with
6 additions
and
12 deletions
.gitlab-ci.yml
+
6
−
12
View file @
a23c80b0
...
...
@@ -68,20 +68,14 @@ deploy_ood_proxy_node:
exit 1
fi
# Get the available floating IP and ensure it's valid
FLOATING_IP=$(openstack floating ip list --format value --column 'Floating IP Address' | grep -w "$PROXY_IP")
if [ -z "$FLOATING_IP" ]; then
echo "ERROR: No Floating IP found for ${PROXY_IP}"
exit 1
else
# Add the floating IP to the newly created instance
openstack server add floating ip $NEW_INSTANCE_ID $FLOATING_IP
echo "Successfully assigned Floating IP: $FLOATING_IP to the server"
fi
# Create and assign a floating IP
FLOATING_IP=$(openstack floating ip create $PKR_VAR_floating_ip_network -f value -c floating_ip_address)
echo "Created FLOATING_IP: $FLOATING_IP"
# Store the instance ID in variables.env for later use
echo "NEW_INSTANCE_ID=$NEW_INSTANCE_ID" >> $CI_PROJECT_DIR/variables.env
# Associate the floating IP with the proxy instance
openstack server add floating ip $PROXY_INSTANCE_ID $FLOATING_IP
echo "Associated FLOATING_IP $FLOATING_IP with PROXY_INSTANCE_ID $PROXY_INSTANCE_ID"
rules
:
-
if
:
$CI_PIPELINE_SOURCE == 'merge_request_event'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment