6.3.3. Configuring a URI allowlist for web-import sources


You configure the sources of web-import image downloads by specifying URI allowlists and blocklists in the glance template in your OpenStackControlPlane custom resource (CR) file.

In this example, you are using an FTP server for image upload. The default port for FTP is 21.

Procedure

  1. Open your OpenStackControlPlane custom resource CR file, openstack_control_plane.yaml, and add the following parameters to the glance template:

    Example

    glance:
      template:
        customServiceConfig: |
          [DEFAULT]
          allowed_schemes = [http,https,ftp]
          disallowed_schemes = []
          allowed_hosts = []
          disallowed_hosts = []
          allowed_ports = [80,443]
          disallowed_ports = []
        glanceAPIs:
          ...
  2. Update the control plane:

    $ oc apply -f openstack_control_plane.yaml -n openstack
  3. Wait until RHOCP creates the resources related to the OpenStackControlPlane CR. Run the following command to check the status:

    $ oc get openstackcontrolplane -n openstack
    提示

    Append the -w option to the end of the get command to track deployment progress.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部