GithubHelp home page GithubHelp logo

v0.3 - Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '' failed with unexpected status code 400 (INVALID_INPUT_DATA): networkDomainId must be provided. about docker-machine-driver-ddcloud HOT 23 CLOSED

dimensiondataresearch avatar dimensiondataresearch commented on September 25, 2024
v0.3 - Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '' failed with unexpected status code 400 (INVALID_INPUT_DATA): networkDomainId must be provided.

from docker-machine-driver-ddcloud.

Comments (23)

tintoy avatar tintoy commented on September 25, 2024

Yes, this is a bug!

Sorry about that. Will be fixed in v0.5.

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Ok, @bernard357, could you give v0.5 a try?

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Yep, running right now... Hold your breath ...

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Still broken, but maybe this is not related to your code

docker-machine create --driver ddcloud \
>     --ddcloud-region EU \
>     --ddcloud-datacenter EU6 \
>     --ddcloud-networkdomain 'GreenPowerFox' \
>     --ddcloud-vlan 'GreenPowerNetwork' \
>     --ddcloud-ssh-key ~/.ssh/id_rsa \
>     --ddcloud-ssh-bootstrap-password 'throw-away-password' \
>     --ddcloud-create-ssh-firewall-rule \
>     mydockermachine2
Running pre-create checks...
(mydockermachine2) Will create machine 'mydockermachine2' on VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox' (data centre 'EU6').
(mydockermachine2) Resolving target network domain 'GreenPowerFox' in region 'EU'...
(mydockermachine2) Resolving target VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox'...
(mydockermachine2) Resolving OS image 'Ubuntu 14.04 2 CPU' in data centre 'EU6'...
Creating machine...
(mydockermachine2) Importing SSH key...
(mydockermachine2) Creating server 'mydockermachine2'...
(mydockermachine2) Exposing server 'mydockermachine2'...
(mydockermachine2) Server 'mydockermachine2' has public IP '168.128.13.17'.
(mydockermachine2) Creating firewall rule to enable inbound SSH traffic from local machine '' ('81.82.197.139') to 'mydockermachine2' ('168.128.13.17':22)...
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '7f765119-bf80-41d5-a697-5631e1b75855' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.

I will give this a second try later today, and on a different data centre.

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Can you try running it with MCP_EXTENDED_LOGGING=1 and MACHINE_DEBUG=1 ? That may help shed some light...

On 9 Nov. 2016, at 6:42 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Still broken, but maybe this is not related to your code

docker-machine create --driver ddcloud \

--ddcloud-region EU \
--ddcloud-datacenter EU6 \
--ddcloud-networkdomain 'GreenPowerFox' \
--ddcloud-vlan 'GreenPowerNetwork' \
--ddcloud-ssh-key ~/.ssh/id_rsa \
--ddcloud-ssh-bootstrap-password 'throw-away-password' \
--ddcloud-create-ssh-firewall-rule \
mydockermachine2

Running pre-create checks...
(mydockermachine2) Will create machine 'mydockermachine2' on VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox' (data centre 'EU6').
(mydockermachine2) Resolving target network domain 'GreenPowerFox' in region 'EU'...
(mydockermachine2) Resolving target VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox'...
(mydockermachine2) Resolving OS image 'Ubuntu 14.04 2 CPU' in data centre 'EU6'...
Creating machine...
(mydockermachine2) Importing SSH key...
(mydockermachine2) Creating server 'mydockermachine2'...
(mydockermachine2) Exposing server 'mydockermachine2'...
(mydockermachine2) Server 'mydockermachine2' has public IP '168.128.13.17'.
(mydockermachine2) Creating firewall rule to enable inbound SSH traffic from local machine '' ('81.82.197.139') to 'mydockermachine2' ('168.128.13.17':22)...
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '7f765119-bf80-41d5-a697-5631e1b75855' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.

I will give this a second try later today, and on a different data centre.

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-259351739, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezHyTCMF9B5dHcgQLyCkd5rEOwOwMks5q8XlvgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Here you go with the beginning of the output:

$ export MCP_EXTENDED_LOGGING=1
$ export MACHINE_DEBUG=1
$ 
$ docker-machine create --driver ddcloud \
>     --ddcloud-region EU \
>     --ddcloud-datacenter EU6 \
>     --ddcloud-networkdomain 'GreenPowerFox' \
>     --ddcloud-vlan 'GreenPowerNetwork' \
>     --ddcloud-ssh-key ~/.ssh/id_rsa \
>     --ddcloud-ssh-bootstrap-password 'throw-away-password' \
>     --ddcloud-create-ssh-firewall-rule \
>     mydockermachine3
Docker Machine Version:  0.8.2, build e18a919
Found binary path at /usr/local/bin/docker-machine-driver-ddcloud
Launching plugin server for driver ddcloud
Plugin server listening at address 127.0.0.1:53473
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-ddcloud
Launching plugin server for driver ddcloud
Plugin server listening at address 127.0.0.1:53477
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(mydockermachine3) Calling .GetMachineName
(mydockermachine3) Calling .DriverName
(mydockermachine3) Calling .GetCreateFlags
(mydockermachine3) Calling .SetConfigFromFlags
(mydockermachine3) DBG | docker-machine-driver-ddcloud v0.5 (5511e77ad3dbc949df5948e1bbb47d4ac29c10ad)
Running pre-create checks...
(mydockermachine3) Calling .PreCreateCheck
(mydockermachine3) Will create machine 'mydockermachine3' on VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox' (data centre 'EU6').
(mydockermachine3) Resolving target network domain 'GreenPowerFox' in region 'EU'...

And now moving directly towards the end of the output:

(mydockermachine3) DBG | 2016/11/09 11:25:06 Polling status for Server '966fae4a-8735-494c-875c-7ef9d334e2eb'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2eb'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2eb' (200): '{"name":"mydockermachine3","description":"mydockermachine3 (created by Docker Machine).","operatingSystem":{"id":"UBUNTU1464","displayName":"UBUNTU14/64","family":"UNIX"},"cpu":{"count":2,"speed":"STANDARD","coresPerSocket":1},"memoryGb":4,"disk":[{"id":"b12c792b-2a5b-4638-a716-7c2335cee076","scsiId":0,"sizeGb":10,"speed":"STANDARD","state":"NORMAL"}],"networkInfo":{"primaryNic":{"id":"ef02557a-fcae-42eb-bbd9-ec2df42cd912","privateIpv4":"10.90.45.9","ipv6":"2a00:47c0:111:1148:16d5:e440:5008:a557","vlanId":"fcf0df68-a843-4864-80c6-b6c3e5b05c9d","vlanName":"GreenPowerNetwork","state":"NORMAL"},"additionalNic":[],"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},"softwareLabel":[],"sourceImageId":"07a1d8b9-9a63-4b79-b630-9b6a734695da","createTime":"2016-11-09T10:18:11.000Z","deployed":true,"started":true,"state":"NORMAL","vmwareTools":{"versionStatus":"CURRENT","runningStatus":"RUNNING","apiVersion":9356},"virtualHardware":{"version":"vmx-10","upToDate":true},"id":"966fae4a-8735-494c-875c-7ef9d334e2eb","datacenterId":"EU6"}'
(mydockermachine3) DBG | 2016/11/09 11:25:06 Deploy of Server '966fae4a-8735-494c-875c-7ef9d334e2eb' has successfully completed.
(mydockermachine3) DBG | Server '966fae4a-8735-494c-875c-7ef9d334e2eb' ('mydockermachine3') has been successfully deployed...
(mydockermachine3) Exposing server 'mydockermachine3'...
(mydockermachine3) DBG | Creating NAT rule for server 'mydockermachine3' ('10.90.45.9')...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"natRule":[{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.6","externalIp":"168.128.13.155","createTime":"2016-11-04T10:20:10.000Z","state":"NORMAL","id":"9c847b12-226a-47bb-94bc-718a42560ad6","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.7","externalIp":"168.128.13.16","createTime":"2016-11-08T06:29:12.000Z","state":"NORMAL","id":"1c0d5d4e-780b-4889-ae85-6e29d49b539b","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.8","externalIp":"168.128.13.17","createTime":"2016-11-09T07:32:09.000Z","state":"NORMAL","id":"e27df46e-cbad-4fbd-b677-d491b459e423","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.90.6","externalIp":"168.128.13.154","createTime":"2016-10-31T22:45:25.000Z","state":"NORMAL","id":"92e751ef-3ab2-4f9a-9eef-e6437db3cb8d","datacenterId":"EU6"}],"pageNumber":1,"pageCount":4,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"natRule":[],"pageNumber":2,"pageCount":0,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | Verifying that network domain 'GreenPowerFox' has a public IP available for server 'mydockermachine3'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"publicIpBlock":[{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","baseIp":"168.128.13.154","size":2,"createTime":"2016-10-31T08:54:24.000Z","state":"NORMAL","id":"8142f3a8-18e1-11e5-8d4f-180373fb68df","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","baseIp":"168.128.13.16","size":2,"createTime":"2016-11-08T06:29:09.000Z","state":"NORMAL","id":"813fb6c0-18e1-11e5-8d4f-180373fb68df","datacenterId":"EU6"}],"pageNumber":1,"pageCount":2,"totalCount":2,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"publicIpBlock":[],"pageNumber":2,"pageCount":0,"totalCount":2,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"ip":[{"value":"168.128.13.154","datacenterId":"EU6","ipBlockId":"8142f3a8-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.155","datacenterId":"EU6","ipBlockId":"8142f3a8-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.16","datacenterId":"EU6","ipBlockId":"813fb6c0-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.17","datacenterId":"EU6","ipBlockId":"813fb6c0-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"}],"pageNumber":1,"pageCount":4,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"ip":[],"pageNumber":2,"pageCount":0,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | There are no available public IPs in network domain '7f765119-bf80-41d5-a697-5631e1b75855'; a new block of public IPs will be allocated.
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlock'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Request body: '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"}'
(mydockermachine3) DBG | 2016/11/09 11:25:10 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlock' (200): '{"operation":"ADD_PUBLIC_IP_BLOCK","responseCode":"OK","message":"Public IPv4 Address Block has been added successfully to Network Domain 7f765119-bf80-41d5-a697-5631e1b75855.","info":[{"name":"ipBlockId","value":"8138be92-18e1-11e5-8d4f-180373fb68df"}],"warning":[],"error":[],"requestId":"eu_20161109T112508096+0100_4f1db9e4-a8fb-4e3f-b2d0-a2b20cf6b216"}'
(mydockermachine3) DBG | Allocated new public IP block '8138be92-18e1-11e5-8d4f-180373fb68df'.
(mydockermachine3) DBG | 2016/11/09 11:25:10 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRule'...
(mydockermachine3) DBG | 2016/11/09 11:25:10 Request body: '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.9"}'
(mydockermachine3) DBG | 2016/11/09 11:25:23 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRule' (200): '{"operation":"CREATE_NAT_RULE","responseCode":"OK","message":"NAT Rule with Id a60a6c18-8a53-4ea8-a023-f820727212e7 has been created.","info":[{"name":"natRuleId","value":"a60a6c18-8a53-4ea8-a023-f820727212e7"}],"warning":[],"error":[],"requestId":"eu_20161109T112510891+0100_d5ed10b2-644e-4a86-8838-c516fb608958"}'
(mydockermachine3) DBG | 2016/11/09 11:25:23 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7'...
(mydockermachine3) DBG | 2016/11/09 11:25:23 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7' (200): '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.9","externalIp":"168.128.12.8","createTime":"2016-11-09T10:25:10.000Z","state":"NORMAL","id":"a60a6c18-8a53-4ea8-a023-f820727212e7","datacenterId":"EU6"}'
(mydockermachine3) DBG | Created NAT rule 'a60a6c18-8a53-4ea8-a023-f820727212e7' for server '%!s(MISSING)'
(mydockermachine3) Server 'mydockermachine3' has public IP '168.128.12.8'.
(mydockermachine3) DBG | Created NAT rule 'a60a6c18-8a53-4ea8-a023-f820727212e7' for server 'mydockermachine3' (Ext:'168.128.12.8' -> Int:'10.90.45.9').
Error creating machine: Error in driver during machine creation: Get http://ifconfig.co/json: dial tcp 188.113.88.193:80: getsockopt: connection refused
Opting out of crash reporting.

Does this help to troubleshoot the situation?

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Oh dear - looks like it can't contact ifconfig.cohttp://ifconfig.co to detect your IP address...

Can you run "curl ifconfig.cohttp://ifconfig.co"?

On 9 Nov. 2016, at 9:31 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Here you go with the beginning of the output:

$ export MCP_EXTENDED_LOGGING=1
$ export MACHINE_DEBUG=1
$
$ docker-machine create --driver ddcloud \

--ddcloud-region EU \
--ddcloud-datacenter EU6 \
--ddcloud-networkdomain 'GreenPowerFox' \
--ddcloud-vlan 'GreenPowerNetwork' \
--ddcloud-ssh-key ~/.ssh/id_rsa \
--ddcloud-ssh-bootstrap-password 'throw-away-password' \
--ddcloud-create-ssh-firewall-rule \
mydockermachine3

Docker Machine Version: 0.8.2, build e18a919
Found binary path at /usr/local/bin/docker-machine-driver-ddcloud
Launching plugin server for driver ddcloud
Plugin server listening at address 127.0.0.1:53473
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-ddcloud
Launching plugin server for driver ddcloud
Plugin server listening at address 127.0.0.1:53477
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(mydockermachine3) Calling .GetMachineName
(mydockermachine3) Calling .DriverName
(mydockermachine3) Calling .GetCreateFlags
(mydockermachine3) Calling .SetConfigFromFlags
(mydockermachine3) DBG | docker-machine-driver-ddcloud v0.5 (5511e77)
Running pre-create checks...
(mydockermachine3) Calling .PreCreateCheck
(mydockermachine3) Will create machine 'mydockermachine3' on VLAN 'GreenPowerNetwork' in network domain 'GreenPowerFox' (data centre 'EU6').
(mydockermachine3) Resolving target network domain 'GreenPowerFox' in region 'EU'...

And now moving directly towards the end of the output:

(mydockermachine3) DBG | 2016/11/09 11:25:06 Polling status for Server '966fae4a-8735-494c-875c-7ef9d334e2eb'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2eb'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2eb'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2ebhttps://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/server/server/966fae4a-8735-494c-875c-7ef9d334e2eb' (200): '{"name":"mydockermachine3","description":"mydockermachine3 (created by Docker Machine).","operatingSystem":{"id":"UBUNTU1464","displayName":"UBUNTU14/64","family":"UNIX"},"cpu":{"count":2,"speed":"STANDARD","coresPerSocket":1},"memoryGb":4,"disk":[{"id":"b12c792b-2a5b-4638-a716-7c2335cee076","scsiId":0,"sizeGb":10,"speed":"STANDARD","state":"NORMAL"}],"networkInfo":{"primaryNic":{"id":"ef02557a-fcae-42eb-bbd9-ec2df42cd912","privateIpv4":"10.90.45.9","ipv6":"2a00:47c0:111:1148:16d5:e440:5008:a557","vlanId":"fcf0df68-a843-4864-80c6-b6c3e5b05c9d","vlanName":"GreenPowerNetwork","state":"NORMAL"},"additionalNic":[],"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},"softwareLabel":[],"sourceImageId":"07a1d8b9-9a63-4b79-b630-9b6a734695da","createTime":"2016-11-09T10:18:11.000Z","deployed":true,"started":true,"state":"NORMAL","vmwareTools":{"versionStatus":"CURRENT","runningStatus":"RUNNING","apiVersion":9356},"virtualHardware":{"version":"vmx-10","upToDate":true},"id":"966fae4a-8735-494c-875c-7ef9d334e2eb","datacenterId":"EU6"}'
(mydockermachine3) DBG | 2016/11/09 11:25:06 Deploy of Server '966fae4a-8735-494c-875c-7ef9d334e2eb' has successfully completed.
(mydockermachine3) DBG | Server '966fae4a-8735-494c-875c-7ef9d334e2eb' ('mydockermachine3') has been successfully deployed...
(mydockermachine3) Exposing server 'mydockermachine3'...
(mydockermachine3) DBG | Creating NAT rule for server 'mydockermachine3' ('10.90.45.9')...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:06 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"natRule":[{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.6","externalIp":"168.128.13.155","createTime":"2016-11-04T10:20:10.000Z","state":"NORMAL","id":"9c847b12-226a-47bb-94bc-718a42560ad6","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.7","externalIp":"168.128.13.16","createTime":"2016-11-08T06:29:12.000Z","state":"NORMAL","id":"1c0d5d4e-780b-4889-ae85-6e29d49b539b","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.8","externalIp":"168.128.13.17","createTime":"2016-11-09T07:32:09.000Z","state":"NORMAL","id":"e27df46e-cbad-4fbd-b677-d491b459e423","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.90.6","externalIp":"168.128.13.154","createTime":"2016-10-31T22:45:25.000Z","state":"NORMAL","id":"92e751ef-3ab2-4f9a-9eef-e6437db3cb8d","datacenterId":"EU6"}],"pageNumber":1,"pageCount":4,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:06 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"natRule":[],"pageNumber":2,"pageCount":0,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | Verifying that network domain 'GreenPowerFox' has a public IP available for server 'mydockermachine3'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"publicIpBlock":[{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","baseIp":"168.128.13.154","size":2,"createTime":"2016-10-31T08:54:24.000Z","state":"NORMAL","id":"8142f3a8-18e1-11e5-8d4f-180373fb68df","datacenterId":"EU6"},{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","baseIp":"168.128.13.16","size":2,"createTime":"2016-11-08T06:29:09.000Z","state":"NORMAL","id":"813fb6c0-18e1-11e5-8d4f-180373fb68df","datacenterId":"EU6"}],"pageNumber":1,"pageCount":2,"totalCount":2,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/publicIpBlock?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"publicIpBlock":[],"pageNumber":2,"pageCount":0,"totalCount":2,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=1&pageSize=50' (200): '{"ip":[{"value":"168.128.13.154","datacenterId":"EU6","ipBlockId":"8142f3a8-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.155","datacenterId":"EU6","ipBlockId":"8142f3a8-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.16","datacenterId":"EU6","ipBlockId":"813fb6c0-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"},{"value":"168.128.13.17","datacenterId":"EU6","ipBlockId":"813fb6c0-18e1-11e5-8d4f-180373fb68df","networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"}],"pageNumber":1,"pageCount":4,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/reservedPublicIpv4Address?networkDomainId=7f765119-bf80-41d5-a697-5631e1b75855&pageNumber=2&pageSize=50' (200): '{"ip":[],"pageNumber":2,"pageCount":0,"totalCount":4,"pageSize":50}'
(mydockermachine3) DBG | There are no available public IPs in network domain '7f765119-bf80-41d5-a697-5631e1b75855'; a new block of public IPs will be allocated.
(mydockermachine3) DBG | 2016/11/09 11:25:07 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlock'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlock'...
(mydockermachine3) DBG | 2016/11/09 11:25:07 Request body: '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855"}'
(mydockermachine3) DBG | 2016/11/09 11:25:10 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlockhttps://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/addPublicIpBlock' (200): '{"operation":"ADD_PUBLIC_IP_BLOCK","responseCode":"OK","message":"Public IPv4 Address Block has been added successfully to Network Domain 7f765119-bf80-41d5-a697-5631e1b75855.","info":[{"name":"ipBlockId","value":"8138be92-18e1-11e5-8d4f-180373fb68df"}],"warning":[],"error":[],"requestId":"eu_20161109T112508096+0100_4f1db9e4-a8fb-4e3f-b2d0-a2b20cf6b216"}'
(mydockermachine3) DBG | Allocated new public IP block '8138be92-18e1-11e5-8d4f-180373fb68df'.
(mydockermachine3) DBG | 2016/11/09 11:25:10 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRule'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRule'...
(mydockermachine3) DBG | 2016/11/09 11:25:10 Request body: '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.9"}'
(mydockermachine3) DBG | 2016/11/09 11:25:23 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRulehttps://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createNatRule' (200): '{"operation":"CREATE_NAT_RULE","responseCode":"OK","message":"NAT Rule with Id a60a6c18-8a53-4ea8-a023-f820727212e7 has been created.","info":[{"name":"natRuleId","value":"a60a6c18-8a53-4ea8-a023-f820727212e7"}],"warning":[],"error":[],"requestId":"eu_20161109T112510891+0100_d5ed10b2-644e-4a86-8838-c516fb608958"}'
(mydockermachine3) DBG | 2016/11/09 11:25:23 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7'...
(mydockermachine3) DBG | 2016/11/09 11:25:23 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/a60a6c18-8a53-4ea8-a023-f820727212e7' (200): '{"networkDomainId":"7f765119-bf80-41d5-a697-5631e1b75855","internalIp":"10.90.45.9","externalIp":"168.128.12.8","createTime":"2016-11-09T10:25:10.000Z","state":"NORMAL","id":"a60a6c18-8a53-4ea8-a023-f820727212e7","datacenterId":"EU6"}'
(mydockermachine3) DBG | Created NAT rule 'a60a6c18-8a53-4ea8-a023-f820727212e7' for server '%!s(MISSING)'
(mydockermachine3) Server 'mydockermachine3' has public IP '168.128.12.8'.
(mydockermachine3) DBG | Created NAT rule 'a60a6c18-8a53-4ea8-a023-f820727212e7' for server 'mydockermachine3' (Ext:'168.128.12.8' -> Int:'10.90.45.9').
Error creating machine: Error in driver during machine creation: Get http://ifconfig.co/json:http://ifconfig.co/json: dial tcp 188.113.88.193:80: getsockopt: connection refused
Opting out of crash reporting.

Does this help to troubleshoot the situation?

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-259382463, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezATMXYELDw5bUWQUvRI5VKJVxUsZks5q8aEEgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Oh dear. That means it can't connect to http://ifconfig.co/json for some reason. ifconfig.co is used to detect your external IP address (required to create the firewall rule). I'll see if I can make the error message more informative. Are you able to run curl http://ifconfig.co/json from the command line?

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

BTW, if this is currently blocking you, you can always create a firewall rule manually that permits SSH from your external IP address to anything on the VLAN's subnet (and omit the --ddcloud-create-ssh-firewall-rule flag) which will let you get past it.

Seems odd that you can't connect to ifconfig.co, though - I just tried it from here and it's fine...

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Ok, for times when ifconfig.co is unreachable for some reason, I've added a new flag (ddcloud-client-public-ip) which can be used to explicitly specify the client's public IP (instead of auto-detecting it).

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

v0.7 has the new flag.

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Hello Adam, v0.7 has been downloaded v0.7 and tested against EU6, EU8 and EU9. There is now a strange error that is different from previous tests. End of the dump is reflected below:

...
(mydockermachine-5) DBG | Created NAT rule '447cc6be-3ab6-4863-99ee-e83602dee5f4' for server 'mydockermachine-5' (Ext:'168.128.108.25' -> Int:'10.100.0.9').
(mydockermachine-5) DBG | Creating SSH firewall rule for server 'mydockermachine-5' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.108.25')...
(mydockermachine-5) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-5' ('168.128.108.25':22)...
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Request body: '{"name":"mydockermachine.5.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.108.25"},"port":{"begin":22,"end":null}},"networkDomainId":"466c16a8-6ebf-4d62-ad5d-74bc17626ab6"}'
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"eu_20161112T090716653+0100_ad74fabb-eb25-4442-b19e-a8080b5725d6"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '466c16a8-6ebf-4d62-ad5d-74bc17626ab6' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

Is there a need for Advanced networks, or is it ok to use Essential service level? Just basic check...

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Please note that the same error pops up against AU10:

...
(mydockermachine-6) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-6' ('168.128.52.128':22)...
(mydockermachine-6) DBG | Creating SSH firewall rule for server 'mydockermachine-6' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.52.128')...
(mydockermachine-6) DBG | 2016/11/12 09:29:04 Invoking 'POST' request to 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-6) DBG | 2016/11/12 09:29:04 Request body: '{"name":"mydockermachine.6.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.52.128"},"port":{"begin":22,"end":null}},"networkDomainId":"8c2edca6-0e5f-4b77-bb0a-4c5b48daaaf1"}'
(mydockermachine-6) DBG | 2016/11/12 09:29:10 Response from 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"au_20161112T192910735+1100_d34b8460-e5dd-4e1b-90d9-239953f4a39f"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '8c2edca6-0e5f-4b77-bb0a-4c5b48daaaf1' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Unfortunately, the same error comes from Advanced network domains:

...
(mydockermachine-7) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-7' ('168.128.52.128':22)...
(mydockermachine-7) DBG | Creating SSH firewall rule for server 'mydockermachine-7' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.52.128')...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Invoking 'POST' request to 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Request body: '{"name":"mydockermachine.7.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.52.128"},"port":{"begin":22,"end":null}},"networkDomainId":"78615e29-7661-47ab-b3c4-d92dd5897c3c"}'
(mydockermachine-7) DBG | 2016/11/12 09:51:07 Response from 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"au_20161112T195106847+1100_ff219eb1-2e1f-45ce-8ee6-a01eda5c53c4"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '78615e29-7661-47ab-b3c4-d92dd5897c3c' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

What do you think?

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Not at all - basic should have been fine.

UNEXPECTED_ERROR should be reported to CloudControl support - it's a catch-all, and usually means there's a bug somewhere in CloudControl...

Are you able to try a different network domain, DC, or organisation account? Sorry but that may be the only way to be sure where the problem is.

On 12 Nov. 2016, at 7:21 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Hello Adam, v0.7 has been downloaded v0.7 and tested against EU6, EU8 and EU9. There is now a strange error that is different from previous tests. End of the dump is reflected below:

...
(mydockermachine-5) DBG | Created NAT rule '447cc6be-3ab6-4863-99ee-e83602dee5f4' for server 'mydockermachine-5' (Ext:'168.128.108.25' -> Int:'10.100.0.9').
(mydockermachine-5) DBG | Creating SSH firewall rule for server 'mydockermachine-5' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.108.25')...
(mydockermachine-5) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-5' ('168.128.108.25':22)...
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Invoking 'POST' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Request body: '{"name":"mydockermachine.5.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.108.25"},"port":{"begin":22,"end":null}},"networkDomainId":"466c16a8-6ebf-4d62-ad5d-74bc17626ab6"}'
(mydockermachine-5) DBG | 2016/11/12 09:07:16 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRulehttps://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"eu_20161112T090716653+0100_ad74fabb-eb25-4442-b19e-a8080b5725d6"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '466c16a8-6ebf-4d62-ad5d-74bc17626ab6' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

Is there a need for Advanced networks, or is it ok to use Essential service level? Just basic check...

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-260109179, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezCmYwGR5uUfwY-fTS_JVj1g_G40Sks5q9XcEgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Too fast for me was going to suggest that :-)

On 12 Nov. 2016, at 7:31 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Please note that the same error pops up against AU10:

...
(mydockermachine-6) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-6' ('168.128.52.128':22)...
(mydockermachine-6) DBG | Creating SSH firewall rule for server 'mydockermachine-6' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.52.128')...
(mydockermachine-6) DBG | 2016/11/12 09:29:04 Invoking 'POST' request to 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-6) DBG | 2016/11/12 09:29:04 Request body: '{"name":"mydockermachine.6.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.52.128"},"port":{"begin":22,"end":null}},"networkDomainId":"8c2edca6-0e5f-4b77-bb0a-4c5b48daaaf1"}'
(mydockermachine-6) DBG | 2016/11/12 09:29:10 Response from 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRulehttps://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"au_20161112T192910735+1100_d34b8460-e5dd-4e1b-90d9-239953f4a39f"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '8c2edca6-0e5f-4b77-bb0a-4c5b48daaaf1' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-260109500, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezNzpXowiMTPeTGBG7dTt0C0oF3KAks5q9XktgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Yeah I think it would be good to report this to CloudControl support, sounds like there may be a problem with your account...

On 12 Nov. 2016, at 8:04 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Unfortunately, the same error comes from Advanced network domains:

...
(mydockermachine-7) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-7' ('168.128.52.128':22)...
(mydockermachine-7) DBG | Creating SSH firewall rule for server 'mydockermachine-7' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.52.128')...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Invoking 'POST' request to 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Request body: '{"name":"mydockermachine.7.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.52.128"},"port":{"begin":22,"end":null}},"networkDomainId":"78615e29-7661-47ab-b3c4-d92dd5897c3c"}'
(mydockermachine-7) DBG | 2016/11/12 09:51:07 Response from 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRulehttps://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"au_20161112T195106847+1100_ff219eb1-2e1f-45ce-8ee6-a01eda5c53c4"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '78615e29-7661-47ab-b3c4-d92dd5897c3c' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

What do you think?

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-260110729, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezGSVq4eUHRE_jBwP92jw9GlWpd5Gks5q9YECgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

If you run it with MACHINE_DEBUG=1 and MCP_EXTENDED_LOGGING=1 it will dump out the exact CloudControl API calls it is making, including request and response bodies. Including this in the support ticket will probably help them a lot with troubleshooting.

BTW, are you able to create the rule manually in the CloudControl portal?

On 12 Nov. 2016, at 8:04 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Unfortunately, the same error comes from Advanced network domains:

...
(mydockermachine-7) Creating firewall rule to enable inbound SSH traffic from local machine '' ('89.92.175.108') to 'mydockermachine-7' ('168.128.52.128':22)...
(mydockermachine-7) DBG | Creating SSH firewall rule for server 'mydockermachine-7' (allow inbound traffic on port 22 from '89.92.175.108' to '168.128.52.128')...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Invoking 'POST' request to 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule'...
(mydockermachine-7) DBG | 2016/11/12 09:51:01 Request body: '{"name":"mydockermachine.7.ssh","action":"ACCEPT_DECISIVELY","enabled":true,"placement":{"position":""},"ipVersion":"IPv4","protocol":"TCP","source":{"ip":{"address":"89.92.175.108"}},"destination":{"ip":{"address":"168.128.52.128"},"port":{"begin":22,"end":null}},"networkDomainId":"78615e29-7661-47ab-b3c4-d92dd5897c3c"}'
(mydockermachine-7) DBG | 2016/11/12 09:51:07 Response from 'https://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRulehttps://api-AU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/createFirewallRule' (400): '{"operation":"CREATE_FIREWALL_RULE","responseCode":"UNEXPECTED_ERROR","message":"Unexpected error.","info":[],"warning":[],"error":[],"requestId":"au_20161112T195106847+1100_ff219eb1-2e1f-45ce-8ee6-a01eda5c53c4"}'
Error creating machine: Error in driver during machine creation: Request to create firewall rule in network domain '78615e29-7661-47ab-b3c4-d92dd5897c3c' failed with unexpected status code 400 (UNEXPECTED_ERROR): Unexpected error.
Opting out of crash reporting.

What do you think?

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-260110729, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezGSVq4eUHRE_jBwP92jw9GlWpd5Gks5q9YECgaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Putting baskets right now to get fresh air from the outside, will come back to it later during the week-end. See you...

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

@bernard357 - is this still an issue?

from docker-machine-driver-ddcloud.

bernard357 avatar bernard357 commented on September 25, 2024

Yes, the issue on public IP address is back... The funny thing is that the public IP address is displayed in the log, just before the program attempts to get it again:

...
(mydockermachine-8) DBG | 2016/11/17 11:50:17 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12'...
(mydockermachine-8) DBG | 2016/11/17 11:50:18 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12' (200): '{"networkDomainId":"2f992d10-f7d8-43c1-852c-7571372e1d78","internalIp":"10.100.0.9","externalIp":"168.128.12.69","createTime":"2016-11-17T10:50:06.000Z","state":"NORMAL","id":"59b61a42-a7b2-4cc8-8d75-05dfa9875f12","datacenterId":"EU6"}'
(mydockermachine-8) DBG | Created NAT rule '59b61a42-a7b2-4cc8-8d75-05dfa9875f12' for server '%!s(MISSING)'
(mydockermachine-8) DBG | Created NAT rule '59b61a42-a7b2-4cc8-8d75-05dfa9875f12' for server 'mydockermachine-8' (Ext:'168.128.12.69' -> Int:'10.100.0.9').
(mydockermachine-8) Server 'mydockermachine-8' has public IP '168.128.12.69'.
(mydockermachine-8) Auto-detecting client's public (external) IP address...
Error creating machine: Error in driver during machine creation: Unable to connect to ifconfig.co to determine your IP address: Get https://ifconfig.co/json: dial tcp 188.113.88.193:443: getsockopt: connection refused
Opting out of crash reporting.

Moreover, on my Mac there is no way to access ifconfig.co:

bernard:2016 bernard$ curl http://ifconfig.co/json
curl: (7) Failed to connect to ifconfig.co port 80: Connection refused
bernard:2016 bernard$ sudo curl http://ifconfig.co/json
Password:
curl: (7) Failed to connect to ifconfig.co port 80: Connection refused
bernard:2016 bernard$ 

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

Bizarre. If you explicitly specify your client IP it won't connect to ifconfig.cohttp://ifconfig.co (--ddcloud-client-ip). That's the workaround for this scenario.

On 17 Nov. 2016, at 10:20 pm, Bernard Paques <[email protected]mailto:[email protected]> wrote:

Yes, the issue on public IP address is back... The funny thing is that the public IP address is displayed in the log, just before the program attempts to get it again:

...
(mydockermachine-8) DBG | 2016/11/17 11:50:17 Invoking 'GET' request to 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12'...
(mydockermachine-8) DBG | 2016/11/17 11:50:18 Response from 'https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12https://api-EU.dimensiondata.com/caas/2.2/3755d938-0bfc-4553-9c68-b61fbd1f4cd0/network/natRule/59b61a42-a7b2-4cc8-8d75-05dfa9875f12' (200): '{"networkDomainId":"2f992d10-f7d8-43c1-852c-7571372e1d78","internalIp":"10.100.0.9","externalIp":"168.128.12.69","createTime":"2016-11-17T10:50:06.000Z","state":"NORMAL","id":"59b61a42-a7b2-4cc8-8d75-05dfa9875f12","datacenterId":"EU6"}'
(mydockermachine-8) DBG | Created NAT rule '59b61a42-a7b2-4cc8-8d75-05dfa9875f12' for server '%!s(MISSING)'
(mydockermachine-8) DBG | Created NAT rule '59b61a42-a7b2-4cc8-8d75-05dfa9875f12' for server 'mydockermachine-8' (Ext:'168.128.12.69' -> Int:'10.100.0.9').
(mydockermachine-8) Server 'mydockermachine-8' has public IP '168.128.12.69'.
(mydockermachine-8) Auto-detecting client's public (external) IP address...
Error creating machine: Error in driver during machine creation: Unable to connect to ifconfig.cohttp://ifconfig.co to determine your IP address: Get https://ifconfig.co/json:https://ifconfig.co/json: dial tcp 188.113.88.193:443: getsockopt: connection refused
Opting out of crash reporting.

Moreover, on my Mac there is no way to access ifconfig.cohttp://ifconfig.co:

bernard:2016 bernard$ curl http://ifconfig.co/jsonhttp://ifconfig.co/json
curl: (7) Failed to connect to ifconfig.cohttp://ifconfig.co port 80: Connection refused
bernard:2016 bernard$ sudo curl http://ifconfig.co/jsonhttp://ifconfig.co/json
Password:
curl: (7) Failed to connect to ifconfig.cohttp://ifconfig.co port 80: Connection refused
bernard:2016 bernard$

You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/7#issuecomment-261222197, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABkezJYM5OdmiNyIJ95tTSGVQVnc_Neoks5q_Dh7gaJpZM4KsGIV.

itevomcid

from docker-machine-driver-ddcloud.

tintoy avatar tintoy commented on September 25, 2024

I'm closing this one for now since there is a workaround (--ddcloud-client-id). If you run into problems using that, let me know and I'll open a new issue.

from docker-machine-driver-ddcloud.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.