Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Very Demiurge Very Mindful
Kolla Ansible
Commits
05d2373a
Commit
05d2373a
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix Magnum Kolla demo in contrib"
parents
e4f01281
4286a501
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/demos/magnum/start
+20
-26
20 additions, 26 deletions
contrib/demos/magnum/start
contrib/demos/magnum/stop
+5
-4
5 additions, 4 deletions
contrib/demos/magnum/stop
with
25 additions
and
30 deletions
contrib/demos/magnum/start
+
20
−
26
View file @
05d2373a
#!/bin/bash
NETWORK_MANAGER
=
$(
grep
-sri
NETWORK_MANAGER ../../compose/openstack.env |
cut
-f2
-d
"="
)
if
[
"
$NETWORK_MANAGER
"
!=
"neutron"
]
;
then
echo
'Magnum depends on the Neutron network manager to operate.'
echo
'Exiting because the network manager is'
"
$NETWORK_MANAGER
"
.
exit
1
fi
echo
Downloading glance image.
IMAGE_URL
=
https://fedorapeople.org/groups/magnum
IMAGE
=
fedora-21-atomic-3.qcow2
IMAGE_NAME
=
fedora-21-atomic-6
IMAGE
=
${
IMAGE_NAME
}
.qcow2
if
!
[
-f
"
$IMAGE
"
]
;
then
echo
"Downloading
${
IMAGE_NAME
}
image"
curl
-L
-o
./
$IMAGE
$IMAGE_URL
/
$IMAGE
fi
NIC_ID
=
$(
neutron net-
show public1 |
awk
'/ id /{print $4}'
)
NIC_ID
=
$(
openstack network
show public1 |
awk
'/ id /{print $4}'
)
glance
image
-
delete
fedora-21-atomic-3
2> /dev/null
openstack
image
delete
${
IMAGE_NAME
}
2> /dev/null
echo
Loading
fedora-atomic
image into glance
glance
image
-
create
--
name
fedora-21-atomic-3
--progress
--is-
public
true
--disk-format
qcow2
--container-format
bare
--file
./
$IMAGE
GLANCE_IMAGE_ID
=
$(
glance
image
-
show
fedora-21-atomic-3
|
grep id
|
awk
'{print $4}'
)
echo
"
Loading
${
IMAGE_NAME
}
image into glance
"
openstack
image
create
--public
--disk-format
qcow2
--container-format
bare
--file
./
$IMAGE
${
IMAGE_NAME
}
GLANCE_IMAGE_ID
=
$(
openstack
image
show
${
IMAGE_NAME
}
|
grep id
|
awk
'{print $4}'
)
echo
r
egistering os-distro property with image
glance image-update
$GLANCE_IMAGE_ID
--property
os_distro
=
fedora-atomic
echo
"R
egistering os-distro property with image
"
openstack image
set
$GLANCE_IMAGE_ID
--property
os_distro
=
fedora-atomic
echo
Creating
baymodel
magnum
baymodel
-create
\
--name
test
baymodel
\
--image
-id
$GLANCE_IMAGE_ID
\
--keypair
-id
mykey
\
echo
"
Creating
cluster-template"
magnum
cluster-template
-create
\
--name
test
clustertemplate
\
--image
$GLANCE_IMAGE_ID
\
--keypair
mykey
\
--fixed-network
10.0.3.0/24
\
--external-network-id
$NIC_ID
\
--dns-nameserver
8.8.8.8
--flavor-id
m1.small
\
--external-network
$NIC_ID
\
--tls-disabled
\
--dns-nameserver
8.8.8.8
--flavor
m1.small
\
--docker-volume-size
5
--coe
kubernetes
echo
Creating Bay
magnum bay-create
--name
testbay
--baymodel
testbaymodel
--node-count
2
echo
"Creating cluster"
magnum cluster-create
--name
testcluster
--cluster-template
testclustertemplate
--node-count
2
This diff is collapsed.
Click to expand it.
contrib/demos/magnum/stop
+
5
−
4
View file @
05d2373a
#!/bin/bash
magnum bay-delete testbay
while
magnum bay-list |
grep
-q
testbay
;
do
echo
"Deleting cluster"
magnum cluster-delete testcluster
while
magnum cluster-list |
grep
-q
testcluster
;
do
sleep
1
done
magnum baymodel-delete testbaymodel
echo
"Deleting cluster-template"
magnum cluster-template-delete testclustertemplate
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