Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1805840

Summary: OSP13z10: Method Not Allowed (HTTP 405) when using 'openstack object store account' on RGW
Product: Red Hat OpenStack Reporter: Vincent S. Cojot <vcojot>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: fpantano, gfidente, jdurgin, lhh, mariel, mburns, mgarciac, srangach, yrabl
Target Milestone: z12Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.4.1-58.el7ost Doc Type: Bug Fix
Doc Text:
Before this update, deploying Ceph RadosGW did not create the `swiftoperator` role, and users with the `swiftoperator` role were not granted administration permissions for RadosGW Swift endpoints. With this update, deploying Swift or Ceph RadosGW creates the `swiftoperator` role automatically, and users with the `swiftoperator` role can now administer RadosGW objects as well as Swift objects.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-24 11:33:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vincent S. Cojot 2020-02-21 16:04:53 UTC
Description of problem:

OSP13z10 OSP deployed with Ceph and Ceph-RGW. On that overcloud, here's what I get:

(overcloud) [stack@osp13p ocp]$ openstack object store account set --property Temp-URL-Key=superkey
Method Not Allowed (HTTP 405) (Request-ID: tx000000000000000002255-005e4de155-1044-default)

On an overcloud with a real swift store, I don't get an error:

(overcloud) [stack@qasite1-director ~]$ openstack object store account set --property Temp-URL-Key=superkey

(overcloud) [stack@qasite1-director ~]$

Comment 1 Vincent S. Cojot 2020-02-21 16:06:01 UTC
I'm using the following ceph config in my Director-based deployment:

parameter_defaults:
  CephAnsibleExtraConfig:
    ceph_osd_docker_memory_limit: 5g
    ceph_osd_docker_cpu_limit: 1
    ceph_mds_docker_memory_limit: 4g
    ceph_mds_docker_cpu_limit: 1
  CephAnsibleEnvironmentVariables:
    ANSIBLE_SSH_RETRIES: '6'
    DEFAULT_FORKS: '25'
  ceph_mgr_modules: [status dashboard]
  CephAnsiblePlaybookVerbosity: 1
  CephConfigOverrides:
    journal_size: 5120
    osd_pool_default_size: 1
    osd_pool_default_min_size: 1
    osd_pool_default_pg_num: 128
    osd_pool_default_pgp_num: 128
    mon_max_pg_per_osd: 2048
    rgw_swift_account_in_url: true
  CephAnsibleDisksConfig:
    osd_scenario: collocated
    osd_objectstore: filestore
    #osd_scenario: lvm
    #osd_objectstore: bluestore
    dmcrypt: False
    devices:
      - /dev/sdb
      - /dev/sdc
      - /dev/sdd
      - /dev/sde
      - /dev/sdf
      - /dev/sdg
      - /dev/sdh
  CephPoolDefaultPgNum: 128
  CephPools:
    - name: volumes
      pg_num: 64
    - name: vms
      pg_num: 64
    - name: images
      pg_num: 64

Comment 2 Vincent S. Cojot 2020-02-21 16:39:39 UTC
I was attempting to follow the steps listed here:

https://developers.redhat.com/blog/2020/02/06/red-hat-openshift-4-2-ipi-on-openstack-13-all-in-one-setup

Comment 3 Vincent S. Cojot 2020-02-21 20:19:41 UTC
Ok, some more information:
1) Need the swiftoperator role on OSP13.
2) the endpoints for swift need to be manually modified on OSP13 so that they reference %(project_id)s

Steps are described here:
https://kdjlab.com/openshift-4-2-on-red-hat-openstack-platform-13/

Comment 4 Giulio Fidente 2020-02-24 14:16:01 UTC
> 2) the endpoints for swift need to be manually modified on OSP13 so that
> they reference %(project_id)s

this will be resolved in 13z11, tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1709968

Comment 5 Giulio Fidente 2020-02-24 14:17:11 UTC
we can use this bug to track backport of https://bugzilla.redhat.com/show_bug.cgi?id=1789178 in 13

Comment 18 Yogev Rabl 2020-06-11 18:19:09 UTC
Verified on openstack-tripleo-heat-templates-8.4.1-58.el7ost.noarch

Comment 20 errata-xmlrpc 2020-06-24 11:33:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2718

Comment 21 Red Hat Bugzilla 2024-01-06 04:28:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days