`scw run --gateway` should create server without public ip address
moul opened this issue · comments
Manfred Touron commented
`scw run --gateway` should create server without public ip address
Manfred Touron commented
$ scw -D run --gateway=alpine alpine
gofmt -w ./.
go test -i ./.
go build -o scw ./.
DEBU[0000] Creating a new server
DEBU[0000] POST https://api.scaleway.com/servers payload={"name":"drunk-lalande","image":"4e393543-bcf0-4e44-88ee-db786256bc66","dynamic_ip_required":false,"bootscript":null,"organization":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX"}
DEBU[0000] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0001] PUT https://api.scaleway.com/volumes/fb38a999-f30e-4cd0-8536-82224998d90b payload={"id":"fb38a999-f30e-4cd0-8536-82224998d90b","size":50000000000,"creation_date":"2015-07-22T12:08:13.817920+00:00","modification_date":"2015-07-22T12:08:13.817920+00:00","organization":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX","name":"drunk-lalande-scw-distrib-alpine-latest-2015-06-19_17:09","server":{"id":"31667cc7-0cfe-49f0-a810-31eb7db605d3","name":"drunk-lalande"},"volume_type":"l_ssd","export_uri":""}
DEBU[0001] Created server: 31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0001] Starting server
DEBU[0001] POST https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3/action payload={"action":"poweron"}
DEBU[0002] Server is booting
DEBU[0002] GET https://api.scaleway.com/servers/4275e304-9b40-4c1b-9baf-36e888721c1e
DEBU[0002] Waiting for server to be ready
DEBU[0032] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0034] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0035] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0037] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0038] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0039] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0041] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0042] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0044] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0045] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0046] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0048] GET https://api.scaleway.com/servers/31667cc7-0cfe-49f0-a810-31eb7db605d3
DEBU[0048] Waiting for gateway SSH port
DEBU[0048] Waiting 30 more seconds, for SSH to be ready
DEBU[0078] Server is ready:
DEBU[0078] Executing command
DEBU[0078] Executing: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root 10.1.42.171 -o ProxyCommand=ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -W %h:%p -l root 212.47.237.216 -t -t -t -t
Warning: Permanently added '10.1.42.171' (RSA) to the list of known hosts.
Welcome to Alpine!
The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org>.
You may change this message by editing /etc/motd.
drunk-lalande:~# Shared connection to 10.1.42.171 closed.
DEBU[0101] Command successfuly executed
$ scw inspect drunk-lalande
[{
"id": "31667cc7-0cfe-49f0-a810-31eb7db605d3",
"name": "drunk-lalande",
"creation_date": "2015-07-22T12:08:13.817920+00:00",
"modification_date": "2015-07-22T12:09:02.027361+00:00",
"image": {
"id": "4e393543-bcf0-4e44-88ee-db786256bc66",
"name": "Alpine Linux 3.2",
"creation_date": "2015-06-19T15:12:09.083171+00:00",
"modification_date": "2015-06-24T13:34:02.549910+00:00",
"root_volume": {
"id": "9e9a8d90-9d49-443b-a6a9-1e6d66dda8f4",
"size": 50000000000,
"name": "scw-distrib-alpine-latest-2015-06-19_17:09",
"volume_type": "l_ssd"
},
"public": true,
"default_bootscript": {
"id": "e0a44f49-6707-49cc-b80a-566c4e34cd88",
"title": "3.2.34-std #30 (stable)",
"bootcmdargs": {
"id": "d22c4dde-e5a4-47ad-abb9-d23b54d542ff",
"value": "LINUX_COMMON ip=dhcp boot=local root=/dev/nbd0 USE_XNBD=1 nbd.max_parts=8"
},
"initrd": {
"id": "4fa5ac58-237f-4f9b-bee8-739355c4b380",
"path": "initrd/c1-uInitrd-2015.06.08",
"title": "C1 uInitrd (2015/06/08)"
},
"kernel": {
"id": "cfda4308-cd6f-4e51-9744-905fc0da370f",
"dtb": "",
"path": "kernel/pimouss-uImage-3.2.34-30-std",
"title": "Pimouss 3.2.34-30-std"
},
"public": true
},
"organization": "a283af0b-d13e-42e1-a43f-855ffbf281ab",
"arch": "arm"
},
"dynamic_ip_required": false,
"public_ip": {},
"state": "running",
"state_detail": "booted",
"private_ip": "10.1.42.171",
"hostname": "drunk-lalande",
"volumes": {
"0": {
"id": "fb38a999-f30e-4cd0-8536-82224998d90b",
"size": 50000000000,
"creation_date": "2015-07-22T12:08:13.817920+00:00",
"modification_date": "2015-07-22T12:08:14.913795+00:00",
"organization": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX",
"name": "drunk-lalande-scw-distrib-alpine-latest-2015-06-19_17:09",
"server": {
"id": "31667cc7-0cfe-49f0-a810-31eb7db605d3",
"name": "drunk-lalande"
},
"volume_type": "l_ssd",
"export_uri": "nbd://10.1.42.177:4576"
}
},
"security_group": {
"id": "8321670b-064c-4e71-93b2-38235c34e727",
"name": "Base group"
},
"organization": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX"
}]
$ scw exec drunk-lalande
FATA[0000] server does not have public IP
$ scw exec --gateway=alpine drunk-lalande
Welcome to Alpine!
The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org>.
You may change this message by editing /etc/motd.
drunk-lalande:~#