Connect an image source
An image source is a web server that publishes OS images and their list in a manifest.json file at the root of its address. Connect a source to import images from it into the cluster catalog — Import an image from a source.
OS images from vStack are published at https://repo.vstack.com/images. To import them, add a source with this address.
Before you begin
- You need the Cluster master or VDC admin role. A source added by a user with the Cluster master role is shared; a source added by a VDC admin belongs to the admin's VDCs (virtual data centers). Only the Cluster master can import from a shared source.
- You know the source address — the root where
manifest.jsonis located. For the official vStack source it ishttps://repo.vstack.com/images; for your own server, for example,https://images.example.com/library. Center accepts anhttp://…address only if Allow insecure HTTP is turned on. - Center fetches
manifest.jsonfrom this address when you add the source. A source that does not respond is not saved. - The host name of the source does not point to an internal address: loopback, private (RFC 1918), link-local, CGNAT, the 0.0.0.0/8 network or broadcast; for IPv6 — loopback, link-local and unique local (ULA). Center rejects such an address with the error This address cannot be used.
Add a source
- In the left menu, select Provider Data Center → Image library and open the Sources tab.
- Click Add source. The New source window opens.
- Enter the source name in the Name field.
- Enter the address in the Address field.
- If the address starts with
http://, turn on Allow insecure HTTP. Otherwise the Address field is highlighted with the hint Enable “Allow insecure HTTP” or use HTTPS. - Click Add.
If Center has read manifest.json, the web interface shows the notification Source <name> was successfully added, and the time appears in the Last synchronization column of the source row. If Center cannot read the file, the web interface shows a notification with the reason, the window stays open and the source is not saved: Troubleshooting.
View the images of a source
Click the source row. The source panel opens on the right: Address, Last synchronization, Scheme and Image showcase — the cards of the source images with the version and the size. When the panel opens, Center reads manifest.json again and updates the synchronization time.
- A card with a check mark — the image is already in the cluster catalog.
- An inactive card with the caption The platform cannot import this format — the image is not in the
zfsformat. You cannot import it. - Click an active card to import the image — Import an image from a source.
Only the owner of a source has the showcase and the source commands: the Cluster master owns all sources, a VDC admin owns the sources of their VDCs. For someone else's source, a dash is shown instead of the address, with the tooltip The address is visible to the source owner only.
Synchronize a source
Synchronize a source when new images have appeared on the server: Center reads manifest.json again. The images themselves are not downloaded.
- In the source row, select Actions → Sync, or click Sync in the source panel.
The web interface shows the notification Source catalog updated: <N> images, and Last synchronization shows the new time.
Edit a source
- In the source row, select Actions → Edit. The Edit source window opens.
- Change the Name or the Address and click Edit.
If the address has changed, Center reads manifest.json from the new address and does not save the change if it cannot read it. Center saves a new name without contacting the source. The notification is Source <name> was successfully updated.
Delete a source
Delete a source when you no longer need its images. The images already imported from it stay in the catalog, and you can create VMs from them, but you can no longer retry their distribution to pools with an error.
- In the source row, select Actions → Delete, or click Delete source in the source panel. The Delete source? window opens with the text The source <name> will be removed. Images already imported from it stay in the catalog..
- Click Delete.
The web interface shows the notification Source <name> was successfully deleted.
Troubleshooting
The web interface shows the reason for the rejection in a notification.
| Notification | What to do |
|---|---|
| Invalid source address | Check the address: it must start with https:// or http:// |
| HTTPS is required unless HTTP is explicitly allowed | Use an https:// address or turn on Allow insecure HTTP |
| This address cannot be used | The host name points to an internal address. Publish the source at an address outside the forbidden ranges |
| A source with this address is already registered | The source has already been added — find it in the list |
| The source is unreachable | Center has received no response or an error. Check that the address is reachable from the Center network |
| The source catalog cannot be read | The manifest.json file cannot be parsed, or the required image fields are missing in it. Fix the file on the source server |
| The source is newer than the platform supports | The schema version of manifest.json is higher than the supported one. Contact the owner of the source |
| Source not found | The source has already been deleted or is not visible to you. Refresh the page |
| Insufficient permissions | The source has a different owner, or the role does not have the required privilege |
| The operation is unavailable: the audit log is not responding | Center has not written the action to the security log and therefore has not performed it. Try again later |
Next
- Import an image from a source
- Image library — how the catalog and the sources work.
API methods: os-library-set, os-library-list, os-library-sync, os-library-delete — in the API reference.