Description of problem: While the documentation is "correct", it's misleading Version-Release number of selected component (if applicable): Red Hat Openstack 6 Actual results: (StrOpt) The default user for new instances. This option is deprecated and will be removed in the Juno release. If it's empty, Heat will use the default user set up with your cloud image (for OS::Nova::Server) or 'ec2-user' (for AWS::EC2::Instance). Expected results: Should probably become (StrOpt) The default user for new instances. This option is deprecated and may be removed after the Kilo release. If it's explicitly set to an empty string Heat will use the default user set up with your cloud image (for OS::Nova::Server) or 'ec2-user' (for AWS::EC2::Instance). Because it has a "default" simply not setting it doesn't get you the "empty" effect. Additional info: You can refer to SFDC 01454679 https://c.na7.visual.force.com/apex/Case_View?id=500A000000RPa6e&sfdc.override=1 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html-single/Configuration_Reference_Guide/index.html
Heat appears to use ec2-user as default, which appears to be contradictory to the documentation. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html-single/Configuration_Reference_Guide/index.html#ch_configuring-openstack-orchestration instance_user = ec2-user -------------------- (StrOpt) The default user for new instances. This option is deprecated and will be removed in the Juno release. If it's empty, Heat will use the default user set up with your cloud image (for OS::Nova::Server) or 'ec2-user' (for AWS::EC2::Instance). -------------------- This options has NOT been removed. Additionally, the ec2-user appears to be hard coded default: http://git.openstack.org/cgit/openstack/heat/tree/heat/engine/resources/instance.py?h=stable/juno#n606 ----------------------- # FIXME(shadower): the instance_user config option is deprecated. Once # it's gone, we should always use ec2-user for compatibility with # CloudFormation. if cfg.CONF.instance_user: instance_user = cfg.CONF.instance_user else: instance_user = 'ec2-user' ----------------------- So while the documentation says: "If it's empty, Heat will use the default user set up with your cloud image (for OS::Nova::Server)" means it it is set to an empty string, not if it is unspecified. unspecified will default to ec2-user it's technically correct but could definitely be clearer
Assigning to Don for review.
Changes published: https://access.redhat.com/documentation/en/red-hat-enterprise-linux-openstack-platform/version-7/configuration-reference#ch_configuring-openstack-orchestration Search for 'ec2-user'.
This content is now live on the Customer Portal. Closing.