Skip to content

Instantly share code, notes, and snippets.

View danehans's full-sized avatar

Daneyon Hansen danehans

View GitHub Profile
## Non Provider Option
neutron net-create public225 --router:external True --provider:physical_network physnet225 --provider:network_type flat
neutron subnet-create --name 225-subnet --disable-dhcp --allocation-pool start=192.168.225.150,end=192.168.225.250 public225 192.168.225.0/24 --gateway 192.168.225.1 --dns_nameservers list=true 192.168.26.186
neutron net-create demo-net --provider:network_type vxlan --provider:segmentation_id 10
neutron subnet-create demo-net --name demo-subnet --gateway 10.10.10.1 10.10.10.0/24
neutron router-create demo-router
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router public225
# Sec Group COnfig
# yum install https://kojipkgs.fedoraproject.org//packages/docker/1.7.0/6.git56481a3.fc23/x86_64/docker-1.7.0-6.git56481a3.fc23.x86_64.rpm
Loaded plugins: langpacks
docker-1.7.0-6.git56481a3.fc23.x86_64.rpm | 4.5 MB 00:00:00
Examining /var/tmp/yum-root-ToN0Xy/docker-1.7.0-6.git56481a3.fc23.x86_64.rpm: docker-1.7.0-6.git56481a3.fc23.x86_64
Marking /var/tmp/yum-root-ToN0Xy/docker-1.7.0-6.git56481a3.fc23.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:1.7.0-6.git56481a3.fc23 will be installed
--> Processing Dependency: docker-selinux >= 1.7.0-6.git56481a3.fc23 for package: docker-1.7.0-6.git56481a3.fc23.x86_64
--> Processing Dependency: selinux-policy >= 3.13.1-114 for package: docker-1.7.0-6.git56481a3.fc23.x86_64
# uname -a
Linux kolla52.dmz-pod2.lab 3.17.4-301.fc21.x86_64 #1 SMP Thu Nov 27 19:09:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@kolla52 sbin]# cat /etc/fedora-release
Fedora release 21 (Twenty One)
# yum install https://kojipkgs.fedoraproject.org//packages/docker/1.7.0/6.git56481a3.fc23/x86_64/docker-1.7.0-6.git56481a3.fc23.x86_64.rpm
Loaded plugins: langpacks
docker-1.7.0-6.git56481a3.fc23.x86_64.rpm | 4.5 MB 00:00:00
Examining /var/tmp/yum-root-j9eXhx/docker-1.7.0-6.git56481a3.fc23.x86_64.rpm: docker-1.7.0-6.git56481a3.fc23.x86_64
@danehans
danehans / gist:41f74ce11e480c303790
Created July 15, 2015 00:46
magnum_dns_servers
grep -ri dns_nameserver magnum/
magnum//magnum/api/controllers/v1/baymodel.py: dns_nameserver = wtypes.IPv4AddressType()
magnum//magnum/api/controllers/v1/baymodel.py: dns_nameserver='8.8.1.1',
magnum//magnum/conductor/template_definition.py: self.add_parameter('dns_nameserver',
magnum//magnum/conductor/template_definition.py: baymodel_attr='dns_nameserver')
magnum//magnum/db/sqlalchemy/alembic/versions/2581ebaf0cb2_initial_migration.py: sa.Column('dns_nameserver', sa.String(length=255), nullable=True),
magnum//magnum/db/sqlalchemy/api.py: if 'dns_nameserver' in filters:
magnum//magnum/db/sqlalchemy/api.py: query = query.filter_by(dns_nameserver=filters['dns_nameserver'])
magnum//magnum/db/sqlalchemy/models.py: dns_nameserver = Column(String(255))
magnum//magnum/objects/baymodel.py: 'dns_nameserver': fields.StringField(nullable=True),
ERROR: failed to build kollaglue/centos-rdo-magnum-conductor:latest
[root@kolla28 kolla]# ping mirrorlist.centos.org
PING mirrorlist.centos.org (84.22.180.89) 56(84) bytes of data.
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=1 ttl=49 time=141 ms
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=2 ttl=49 time=141 ms
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=3 ttl=49 time=141 ms
^C
--- mirrorlist.centos.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 141.157/141.314/141.538/0.162 ms
Step 12 : RUN pip install cryptography
---> Running in b0315c2f2569
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting cryptography
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading cryptography-0.9.3.tar.gz (303kB)
Collecting idna (from cryptography)
Downloading idna-2.0-py2.py3-none-any.whl (61kB)
Processing: neutron-linuxbridge-agent
Traceback (most recent call last):
File "./build.py", line 52, in run
self.builder(data)
File "./build.py", line 85, in builder
raise Exception(stream['errorDetail']['message'])
Exception: The command &{[/bin/sh -c yum install -y openstack-gnocchi-statsd && yum clean all]} returned a non-zero code: 1
Traceback (most recent call last):
File "./build.py", line 52, in run
self.builder(data)
Setting up PKI
Traceback (most recent call last):
File "/usr/bin/keystone-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 46, in main
cli.main(argv=sys.argv, config_files=config_files)
File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 684, in main
config.setup_logging()
File "/usr/lib/python2.7/site-packages/keystone/config.py", line 56, in setup_logging
log.setup(CONF, 'keystone')
Creating Keystone tenant, user, role, service and endpoints
usage: crux user-create [-h] [--user-name USER_NAME] [--user-email USER_EMAIL]
[--tenant-name TENANT_NAME]
[--tenant-description TENANT_DESCRIPTION]
[--password PASSWORD] [--role ROLE]
[--random-password]
[--password-length PASSWORD_LENGTH] [--enabled]
[--disabled] [--update]
crux user-create: error: argument --user-name/--user/-n: expected one argument
TASK: [glance | Creating the Glance service and endpoint] *********************
failed: [localhost] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1438630811.09-279214391092228/kolla_keystone_service", line 1794, in <module>
main()
File "/root/.ansible/tmp/ansible-tmp-1438630811.09-279214391092228/kolla_keystone_service", line 78, in main
module.exit_json(failed=True, changed=True, msg=e)
File "/root/.ansible/tmp/ansible-tmp-1438630811.09-279214391092228/kolla_keystone_service", line 1325, in exit_json
print self.jsonify(kwargs)
File "/root/.ansible/tmp/ansible-tmp-1438630811.09-279214391092228/kolla_keystone_service", line 1303, in jsonify