Skip to content

Commit 8388ce8

Browse files
committed
Disable Glance web-download by default
1 parent 46e666e commit 8388ce8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Here comes cyclone (**C**loud **Clone** or cclone) to help you with this task. I
1010

1111
## Help
1212

13-
By default the tool uses a Glance V2 [web-download](https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#image-import-methods) method to clone images. This method allows Glance to download an image using a remote URL. Set the `--image-web-download` option to **false** to use the default download/upload method. In this case the whole image data will be streamed through cyclone.
13+
By default Glance image data will be streamed through cyclone and the traffic will be consumed on the execution side. To enable the Glance V2 [web-download](https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#image-import-methods) method, set the `--image-web-download` flag. This method allows Glance to download an image using a remote URL. It is not recommended to use **web-download** method for images bigger than 1-10GiB, since Glance service will try to download the image to its intermediate local storage and may cause insufficient disk space error.
1414

1515
A remote URL can be generated using a Swift [Temporary URL](https://docs.openstack.org/swift/latest/api/temporary_url_middleware.html).
1616

@@ -45,7 +45,7 @@ Available Commands:
4545
Flags:
4646
-d, --debug print out request and response objects
4747
-h, --help help for cyclone
48-
--image-web-download use Glance web-download image import method (default true)
48+
--image-web-download use Glance web-download image import method
4949
-n, --no assume "no" to all questions
5050
--timeout-backup string timeout to wait for a backup status (default "24h")
5151
--timeout-image string timeout to wait for an image status (default "24h")
@@ -79,11 +79,9 @@ $ cyclone image 77c125f1-2c7b-473e-a56b-28a9a0bc4787 --to-region eu-de-2 --to-pr
7979

8080
### Clone an image between regions using download/upload method
8181

82-
Pay attention that the image data will be streamed through cyclone. It is recommended to use this method, when cyclone is executed directly on the VM, located in the source or destination region.
83-
8482
```sh
8583
$ source openrc-of-the-source-project
86-
$ cyclone image 77c125f1-2c7b-473e-a56b-28a9a0bc4787 --to-region eu-de-2 --to-project destination-project-name --to-image-name image-from-source-project-name --image-web-download=false
84+
$ cyclone image 77c125f1-2c7b-473e-a56b-28a9a0bc4787 --to-region eu-de-2 --to-project destination-project-name --to-image-name image-from-source-project-name
8785
```
8886

8987
### Clone a bootable volume between regions

pkg/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func initRootCmdFlags() {
102102
RootCmd.PersistentFlags().StringP("timeout-server", "", "24h", "timeout to wait for a server status")
103103
RootCmd.PersistentFlags().StringP("timeout-snapshot", "", "24h", "timeout to wait for a snapshot status")
104104
RootCmd.PersistentFlags().StringP("timeout-backup", "", "24h", "timeout to wait for a backup status")
105-
RootCmd.PersistentFlags().BoolP("image-web-download", "", true, "use Glance web-download image import method")
105+
RootCmd.PersistentFlags().BoolP("image-web-download", "", false, "use Glance web-download image import method")
106106
viper.BindPFlag("debug", RootCmd.PersistentFlags().Lookup("debug"))
107107
viper.BindPFlag("yes", RootCmd.PersistentFlags().Lookup("yes"))
108108
viper.BindPFlag("no", RootCmd.PersistentFlags().Lookup("no"))

0 commit comments

Comments
 (0)