Managed to work through my errors with DevStack and stack.sh generates about 6900+ logs on the screen so I am guessing I am very close :)
I am using Keystone 3, I manually exported OS_URL, OS_AUTH_URL (in an earlier run it complained about this one) and others. When the script exits, I tried the command manually with the os_url as noted in the logs below but it complains that it doesn't how which plugin to load and when I switch it to v3.0 it complains with a 404.
Following is a snippet of the error from the screen log, wondering if anyone else has seen this:
2015-08-26 18:30:38.005 | :./stack.sh:575+echo 'Waiting for keystone to start...'
2015-08-26 18:30:38.005 | Waiting for keystone to start...
2015-08-26 18:30:38.005 | :./stack.sh:579+wait_for_service 60 http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:340+local timeout=60
2015-08-26 18:30:38.005 | :./stack.sh:341+local url=http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:342+timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://172.16.11.14:5000/v2.0/ >/dev/null; do sleep 1; done'
2015-08-26 18:30:38.591 | :./stack.sh:584+is_service_enabled tls-proxy
2015-08-26 18:30:38.593 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.593 | :./stack.sh:976+SERVICE_ENDPOINT=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.593 | :./stack.sh:978+is_service_enabled tls-proxy
2015-08-26 18:30:38.596 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.596 | :./stack.sh:985+export OS_TOKEN=password
2015-08-26 18:30:38.596 | :./stack.sh:985+OS_TOKEN=password
2015-08-26 18:30:38.597 | :./stack.sh:986+export OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:986+OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:988+create_keystone_accounts
2015-08-26 18:30:38.597 | ::./stack.sh:376+get_or_create_project admin
2015-08-26 18:30:38.597 | ::./stack.sh:729+local os_cmd=openstack
2015-08-26 18:30:38.597 | ::./stack.sh:730+local domain=
2015-08-26 18:30:38.597 | ::./stack.sh:731+[[ ! -z '' ]]
2015-08-26 18:30:38.597 | :::./stack.sh:740+openstack project create admin --or-show -f value -c id
2015-08-26 18:30:39.596 | ERROR: openstack The resource could not be found. (HTTP 404) (Request-ID: req-a5703c0a-bdb4-4ca0-8bf7-61ddbacbddf1)
2015-08-26 18:30:39.617 | ::./stack.sh:738+local project_id=
2015-08-26 18:30:39.617 | ::./stack.sh:739+echo
2015-08-26 18:30:39.617 | :./stack.sh:376+local admin_tenant=
2015-08-26 18:30:39.617 | ::./stack.sh:377+get_or_create_user admin password
2015-08-26 18:30:39.618 | ::./stack.sh:700+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | ::./stack.sh:703+local email=
2015-08-26 18:30:39.618 | ::./stack.sh:705+local os_cmd=openstack
2015-08-26 18:30:39.618 | ::./stack.sh:706+local domain=
2015-08-26 18:30:39.618 | ::./stack.sh:707+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | :::./stack.sh:723+openstack user create admin --password password --or-show -f value -c id
2015-08-26 18:30:40.853 | ERROR: openstack 'links'
On inspecting the logs across many files, I found that --os-url was getting a null value and hence the 404. To fix this I added OS_URL to openrc file (export OS_URL=http://:5000.... )
I then also had to force use of the identity v3 ... for this you need to modify the get_or_add_project_role sub-routine in the functions-common file (should be around line 775...) to specify the --os-url=$KEYSTONE_SERVICE_URI_V3 and --os-identity-api-version=3 options.
I was then able to get past this error.
Hope that helps.
Related
I am newbie with drupal. My Drupal 9.4.3 sit dev.xyz.in created with composer is ready for deployment. I have a linux based shared hosting plan.
My Local web development environment/IDE is :
OS Ubuntu 18.04LTS
php 7.4.3
mariaDB 15.1
local server nginx
My website directory structure – var/www/dev.xyz.in
dev.xyz.in
| - config
| | - sync
| | | - .htaccess
| - drush
| | - Commands
| | - sites
| | - drush.yml
| | - README.md
| - scripts
| | - composer
| - vendor
| | - composer
| | - drush
| | - bin
| | - twig
| | - symphony
| | - …. more
| - web
| | - core
| | - modules
| | | - contrib
| | | - ds
| | - profiles
| | - sites
| | | - default
| | | - default.services.yml
| | | - default.settings.php
| | | - settings.local.php
| | | - settings.php
| | - themes
| | | - contrib
| | | - custom
| | - update.php
| | - .htaccess
| | - …. more
| - .github
| - composer.json
| - composer.lock
| - load.environment.php
| - phpunit.xml.dist
| - README.md
| - .editorconfog
| - .env.example
| - gitattributes
| - .gitignore
I have changed some settings locally on settings.php as given below:
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}
and
$settings['trusted_host_patterns'] = [
'^localhost',
];
I have changed some settings locally on settings.local.php as given below:
$settings['rebuild_access'] = TRUE;
changed it to
$settings['rebuild_access'] = FALSE;
How can I deploy my website to linux based shared hosting using ftp (filezilla) and what necessary change will taken before deployment of local website? please help me!
I am trying to define an OpenStack cloud for juju. To do this, I have first deployed Devstack using the following configuration in the local.conf file:
$ cat local.conf | grep -v "#" | grep -v "^$"
[[local|localrc]]
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=172.29.21.181
FLOATING_RANGE=172.29.20.1/22
Q_FLOATING_ALLOCATION_POOL=start=172.29.21.182,end=172.29.21.184
PUBLIC_NETWORK_GATEWAY=172.29.21.181
ENABLED_SERVICES+=,tls-proxy
ENABLED_SERVICES+=,g-api,g-reg
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
After a successful deployment, these are the endpoints:
$ openstack endpoint list
+----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------------+
| 0b489b8a683d4be489448230437e39ca | RegionOne | cinder | block-storage | True | public | https://172.29.21.181/volume/v3/$(project_id)s |
| 0b9e96cfe0b440b781171ac0b082de3a | RegionOne | keystone | identity | True | admin | https://172.29.21.181/identity |
| 29ce5b2061dd474492f3aebda164acd0 | RegionOne | cinderv2 | volumev2 | True | public | https://172.29.21.181/volume/v2/$(project_id)s |
| 45e10e75eb6848f5a934674373962e11 | RegionOne | glance | image | True | public | https://172.29.21.181/image |
| 8c35460b8c0d4c21ac9b7dd27bc92c48 | RegionOne | keystone | identity | True | public | https://172.29.21.181/identity |
| af451150c3094497936fd6877380d877 | RegionOne | placement | placement | True | public | https://172.29.21.181/placement |
| b3907f627f684ada8526b89c2c9683f9 | RegionOne | neutron | network | True | public | https://172.29.21.181:9696/ |
| c642b07700b54be39e1dd537e8c0f8be | RegionOne | nova | compute | True | public | https://172.29.21.181/compute/v2.1 |
| dbb94215bc89457383a390a0490a89f6 | RegionOne | nova_legacy | compute_legacy | True | public | https://172.29.21.181/compute/v2/$(project_id)s |
| e1037ed336d541b080e365caa0020e78 | RegionOne | cinderv3 | volumev3 | True | public | https://172.29.21.181/volume/v3/$(project_id)s |
+----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------------+
But when I try to add the cloud to juju using the "juju add-cloud" command (I am following the indications of this link: https://juju.is/docs/olm/openstack) I get the following error:
$ juju add-cloud openstack
This operation can be applied to both a copy on this client and to the one on a controller.
No current controller was detected and there are no registered controllers on this client: either bootstrap one or register one.
Cloud Types
lxd
maas
manual
openstack
vsphere
Select cloud type: openstack
Enter the API endpoint url for the cloud [https://172.29.21.181/identity]: https://172.29.21.181/identity
Can't validate endpoint: No Openstack server running at https://172.29.21.181/identity
Enter the API endpoint url for the cloud [https://172.29.21.181/identity]: https://172.29.21.181/identity/v3
Can't validate endpoint: No Openstack server running at https://172.29.21.181/identity/v3
Enter the API endpoint url for the cloud [https://172.29.21.181/identity]: http://172.29.21.181/identity
Can't validate endpoint: No Openstack server running at http://172.29.21.181/identity
Enter the API endpoint url for the cloud [https://172.29.21.181/identity]: https://172.29.21.181:5000/v3
Can't validate endpoint: No Openstack server running at https://172.29.21.181:5000/v3
I can curl the url:
$ curl https://172.29.21.181/identity
{"versions": {"values": [{"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "https://172.29.21.181/identity/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}}
And I can connect to the port where Keystone is listening:
$ nc -vz 172.29.21.181 5000
Connection to 172.29.21.181 5000 port [tcp/*] succeeded!
I set no_proxy=127.0.0.1,localhost,172.29.21.181 and NO_PROXY=127.0.0.1,localhost,172.29.21.181
as environment variables, because searching for solutions on the Internet I understood that maybe it could solve my problem. But it didn't work.
Apart from this cloud I have another one deployed through Openstack-Ansible. In this cloud I have not encountered this error, the only difference I see is that the url is https://{HOST_IP}:5000/v3.
If anyone has any ideas it would be very helpful, thank you.
I have found a way to bypass this error, but I don’t know exactly why. I have modified the OS_AUTH_URL environment variable to end in “/v3”:
$ unset OS_AUTH_URL
$ export OS_AUTH_URL=https://172.29.21.181/identity/v3
Now, after using it as suggested value when running “juju add-cloud”, I don’t get the error when running “juju bootstrap”. I guess when you enter the url manually, juju checks the validity of it and fails for some code reason maybe. Having skipped that check, I guess the “juju bootstrap” command will directly use the url ending in “/v3” which is correct and works.
Now I get the following error:
$ juju bootstrap openstack --verbose
Adding contents of "/opt/stack/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
Creating Juju controller "openstack-regionone" on openstack/RegionOne
Loading image metadata
ERROR failed to bootstrap model: no image metadata found
But I guess I just have to add Swift to my deployment and follow the instructions in this link: https://juju.is/docs/olm/cloud-image-metadata
Centos7.8 install openstack mitaka version, control the node to install mirror service glance, the mirror contains problems
According to the official documentation Mitaka official documentation operations, Step 3 Upload the image to the image service using the QCOW2 disk format, bare container format, and public visibility so all projects can access it:
I execute the following command
openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public
The size of the image in the output is zero. How should I check this problem
[root#controller ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | d41d8cd98f00b204e9800998ecf8427e |
| container_format | bare |
| created_at | 2020-05-24T14:45:54Z |
| disk_format | qcow2 |
| file | /v2/images/c89f6866-0c48-4ee5-84f1-bf7fa0998edf/file |
| id | c89f6866-0c48-4ee5-84f1-bf7fa0998edf |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros |
| owner | a9629b19eb9348adbf02a5432dd79411 |
| protected | False |
| schema | /v2/schemas/image |
| size | 0 |
| status | active |
| tags | |
| updated_at | 2020-05-24T14:45:54Z |
| virtual_size | None |
| visibility | public |
+------------------+------------------------------------------------------+
I'm setting up Openstack on some machines. I was following this guide http://docs.openstack.org/liberty/install-guide-ubuntu/ until I ran into this problem:
When I'm verifying Image service (Glance), I got the following problem:
$ cat admin-openrc.sh
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=passw0rd
export OS_AUTH_URL=http://Renaissance:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
$ source admin-openrc.sh
$ glance --debug image-create --name "cirros" \
> --file cirros-0.3.4-x86_64-disk.img \
> --disk-format qcow2 --container-format bare \
> --visibility public --progress
curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}7ce8d893ef6cdaca2ed5a876c8211a841455ba65' -H 'Content-Type: application/octet-stream' http://Renaissance:9292/v2/schemas/image
Request returned failure status 401.
Invalid OpenStack Identity credentials.
I would get same error using any other glance function (e.g. glance image-list).
I think I'm having my configurations correct since I followed the guide.
Here's my Openstack services, projects, users, roles and endpoints
+----------------------------------+----------+----------+
| ID | Name | Type |
+----------------------------------+----------+----------+
| bf585630a5cb475b9e883493de3813fa | glance | image |
| fc29e468dae849e6afb97ecc3bf487f6 | keystone | identity |
+----------------------------------+----------+----------+
+----------------------------------+----------+
| ID | Name |
+----------------------------------+----------+
| 0bc473b2e77a4a9bb7871ed2afacb995 | admin |
| dcaf480621164c409b6704c3f42e0869 | service |
| e9f709d860fe46e2819b6bf1c78ccd0f | nonadmin |
+----------------------------------+----------+
+----------------------------------+----------+
| ID | Name |
+----------------------------------+----------+
| 485374adcbe54ce5b9ef465b84aa2c9f | admin |
| 7447f4cd56f64ccfb111cba74f9a4b92 | nonadmin |
| d9ffc32240d24328b10af8b2550ec414 | glance |
+----------------------------------+----------+
+----------------------------------+-------+
| ID | Name |
+----------------------------------+-------+
| 466fea231ef54d3ca4564fb42f51bb5c | admin |
| a36c726d27f04ebf92d336c3acfcd945 | user |
+----------------------------------+-------+
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------+
| 01f62a7b9f7f4fa782e8bc695e74afc1 | RegionOne | glance | image | True | internal | http://Renaissance:9292 |
| abb7e5052d8646428e82ef58ca21b376 | RegionOne | keystone | identity | True | public | http://Renaissance:5000/v2.0 |
| d5b3180255b44a0eafe0810a20e104bc | RegionOne | glance | image | True | public | http://Renaissance:9292 |
| e0392842c6f64ac389a5688bc2581192 | RegionOne | keystone | identity | True | internal | http://Renaissance:5000/v2.0 |
| e0eb3dd0ed774669bce9a74dd3831c05 | RegionOne | keystone | identity | True | admin | http://Renaissance:35357/v2.0 |
| ec855dca8f87454e997fd55c47f17703 | RegionOne | glance | image | True | admin | http://Renaissance:9292 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-------------------------------+
My auth configuration of glance (in glance-api.conf and glance-registry.conf) is listed below:
...
[keystone_authtoken]
# Complete public Identity API endpoint. (string value)
auth_uri = http://Renaissance:5000
auth_uri = http://Renaissance:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = passw0rd
...
And I can get token using Openstack:
$ openstack token issue
+------------+----------------------------------+
| Field | Value |
+------------+----------------------------------+
| expires | 2016-10-01T01:16:48.482839Z |
| id | 2a4e052a2c4140a28f550158d95ecd3b |
| project_id | 0bc473b2e77a4a9bb7871ed2afacb995 |
| user_id | 485374adcbe54ce5b9ef465b84aa2c9f |
+------------+----------------------------------+
I'm guessing its the api version problem, but I've been changing the version number in the uri but it didn't work. Any help is appreciated. Thanks!
in your glance configuration, the project name is service, but your env var project name is admin.
solutions:
ensure passw0rd is the real pw to glance:service account
change glance conf to use admin project instead
I'm not sure if it's the right place for my question, I am trying to install devstack but I'm getting these errors:
openstackclient.shell Exception
2015-04-21 16:22:04.991 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.014 | + ADMIN_TENANT=
2015-04-21 16:22:05.015 | ++ openstack user create admin --project '' --email admin#example.com --password openstack
2015-04-21 16:22:05.015 | ++ grep ' id '
2015-04-21 16:22:05.018 | ++ get_field 2
2015-04-21 16:22:05.018 | ++ read data
2015-04-21 16:22:05.447 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.466 | + ADMIN_USER=
2015-04-21 16:22:05.467 | ++ openstack role create admin
2015-04-21 16:22:05.468 | ++ grep ' id '
2015-04-21 16:22:05.469 | ++ get_field 2
2015-04-21 16:22:05.469 | ++ read data
2015-04-21 16:22:05.897 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.916 | + ADMIN_ROLE=
2015-04-21 16:22:05.916 | + openstack role add --project --user
2015-04-21 16:22:06.349 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:06.368 | + exit_trap
2015-04-21 16:22:06.368 | + local r=1
2015-04-21 16:22:06.368 | ++ jobs -p
2015-04-21 16:22:06.368 | + jobs=
2015-04-21 16:22:06.369 | + [[ -n '' ]]
2015-04-21 16:22:06.369 | + exit 1
After some research, typing pip install --upgrade setuptools, but that doesn't work I am using ubuntu 14.10 with no Virtual Machine, Please help?
For the original question, you have version 1.7.3 of six but 1.9.0 is needed. Uninstall six (pip uninstall six), then uninstall devStack (./clean.sh), then re-install devStack (./stack.sh)--but I'd recommend installing Kilo.
As for the "worlddump.py" output, that is just a dump of the state when an error occurs. The actual error will be in the text above this.