This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2012 NEC Corporation | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_delete_network_exception(self): | |
| tenants = self.tenants.list() | |
| network = self.networks.first() | |
| api.neutron.list_dhcp_agent_hosting_networks(IsA(http.HttpRequest), | |
| network.id).\ | |
| AndReturn(self.agents.list()) | |
| api.neutron.network_ip_availability_show(IsA(http.HttpRequest), | |
| network.id).\ | |
| AndReturn(self.agents.list()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cfg.StrOpt('api_extensions_path', default="<EDIT>", | |
| help=_("The path for API extensions. " | |
| "Note that this can be a colon-separated list of paths. " | |
| "The __path__ of neutron.extensions is appended to " | |
| "this, so if your extensions are in there you don't " | |
| "need to specify them here."), | |
| sample_default='extensions:/path/to/more/exts:/even/more/exts', | |
| required=True), | |
| # The path for API extensions. Note that this can be colon-separated list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Docker Server | |
| ============= | |
| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get install curl -y | |
| curl -sSL https://get.docker.com/gpg | sudo apt-key add - | |
| curl -sSL https://get.docker.com/ | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| External | |
| ======== | |
| #!/bin/bash | |
| curl --data "username=%dme_username%&password=%dme_pw%&id=%dme_id%&ip=%external_ip%" https://cp.dnsmadeeasy.com/servlet/updateip | |
| Internal | |
| ======== | |
| #!/bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE keystone; | |
| GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \ | |
| IDENTIFIED BY 'password'; | |
| GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \ | |
| IDENTIFIED BY 'password'; | |
| CREATE DATABASE glance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {'_networks': {'192.168.140.0/24': ['compute02', 'compute01'], '192.168.100.0/24': ['compute02', 'compute01']}, '_clients': {'compute02': '192.168.100.118', 'compute01': '192.168.100.117'}, '_host_detail': {'compute02': {'192.168.140.0/24': {'ips': ['192.168.140.118'], 'results': {'192.168.140.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.118'], 'results': {'192.168.100.117': {'host': 'compute01', 'result': 'success', 'open_ports': [22]}}}}, 'compute01': {'192.168.140.0/24': {'ips': ['192.168.140.117'], 'results': {'192.168.140.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}, '192.168.100.0/24': {'ips': ['192.168.100.117'], 'results': {'192.168.100.118': {'host': 'compute02', 'result': 'success', 'open_ports': [22]}}}}}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> select * from ml2_port_bindings where port_id='06cc9409-fb74-44cb-8270-890aa4c1d86a'; | |
| +--------------------------------------+------+----------+-----------+---------+-------------+ | |
| | port_id | host | vif_type | vnic_type | profile | vif_details | | |
| +--------------------------------------+------+----------+-----------+---------+-------------+ | |
| | 06cc9409-fb74-44cb-8270-890aa4c1d86a | | unbound | normal | | | | |
| +--------------------------------------+------+----------+-----------+---------+-------------+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2012 OpenStack Foundation. | |
| # All rights reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2016-12-10 01:44:59.102475 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.179871 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.192622 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.250029 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.258922 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.289306 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.296100 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference. | |
| 2016-12-10 01:44:59.337389 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:ta |