From 8ebd8801c475bfdee488d1ec921011cf045ed6a5 Mon Sep 17 00:00:00 2001 From: Ladislav Smola Date: Wed, 16 Apr 2014 14:21:32 +0200 Subject: [PATCH] Init code for Instack Undercloud -When Undercloud was installed using Instack, the init code will be a little different. So for Icehouse we are showing both. Change-Id: Ib2c9b74d41a912f187d2cf3c02a2e4d77682d418 --- .../templates/overcloud/_detail_overview.html | 76 +++++++++++++++---- .../infrastructure/less/horizon_upgrades.less | 5 ++ .../infrastructure/less/individual_pages.less | 7 ++ 3 files changed, 74 insertions(+), 14 deletions(-) diff --git a/tuskar_ui/infrastructure/overcloud/templates/overcloud/_detail_overview.html b/tuskar_ui/infrastructure/overcloud/templates/overcloud/_detail_overview.html index bcb85fbad..795797280 100644 --- a/tuskar_ui/infrastructure/overcloud/templates/overcloud/_detail_overview.html +++ b/tuskar_ui/infrastructure/overcloud/templates/overcloud/_detail_overview.html @@ -48,17 +48,19 @@ {% if not dashboard_urls and not overcloud.is_deploying and not overcloud.is_failed %}
-

Your OpenStack Deployment has been successfully deployed. It needs to be initialized before you will be able to use it. -

+ {% blocktrans %} + Your cloud is now deployed; however, it needs to be initialized. + {% endblocktrans %} +

    +
  • + {% blocktrans %} + For Devtest users you can see instructions here. + {% endblocktrans %} +
    +
    +  # You need to run the following commands from a machine where you have a checkout of the tripleo source code
    +  # and direct access via SSH to your Overcloud control node ({{overcloud.keystone_ip}}).
     
    -    
    -    
    -

    You need to run the below commands on the machine where you have tripleo source code and - direct access through ssh to control node ({{overcloud.keystone_ip}}). -

    -
       export TRIPLEO_ROOT=~/tripleo
       cd $TRIPLEO_ROOT
     
    @@ -69,7 +71,6 @@
     
       export OVERCLOUD_ADMIN_TOKEN={{overcloud.attributes.AdminToken}}
       export OVERCLOUD_ADMIN_PASSWORD={{overcloud.attributes.AdminPassword}}
    -  export OVERCLOUD_CEILOMETER_PASSWORD={{overcloud.attributes.CeilometerPassword}}
       export OVERCLOUD_CINDER_PASSWORD={{overcloud.attributes.CinderPassword}}
       export OVERCLOUD_GLANCE_PASSWORD={{overcloud.attributes.GlancePassword}}
       export OVERCLOUD_HEAT_PASSWORD={{overcloud.attributes.HeatPassword}}
    @@ -96,8 +97,55 @@
           --enable-horizon \
           ${SSLBASE:+--ssl $PUBLIC_API_URL}
       keystone role-create --name heat_stack_user
    -      
    -
    +
    +
    +
  • +
  • + {% blocktrans %} + For Instack users you can see instructions here. + {% endblocktrans %} +
    +
    +  # You need to run the following commands from a Undercloud node where you have
    +  # direct access via SSH to your Overcloud control node ({{overcloud.keystone_ip}}).
    +
    +  # Usually stack user has access to Overcloud control node, so switch to stack user
    +  su stack
    +
    +  export OVERCLOUD_IP={{overcloud.keystone_ip}}
    +
    +  export OVERCLOUD_ADMIN_TOKEN={{overcloud.attributes.AdminToken}}
    +  export OVERCLOUD_ADMIN_PASSWORD={{overcloud.attributes.AdminPassword}}
    +  export OVERCLOUD_CINDER_PASSWORD={{overcloud.attributes.CinderPassword}}
    +  export OVERCLOUD_GLANCE_PASSWORD={{overcloud.attributes.GlancePassword}}
    +  export OVERCLOUD_HEAT_PASSWORD={{overcloud.attributes.HeatPassword}}
    +  export OVERCLOUD_NEUTRON_PASSWORD={{overcloud.attributes.NeutronPassword}}
    +  export OVERCLOUD_NOVA_PASSWORD={{overcloud.attributes.NovaPassword}}
    +  export OVERCLOUD_SWIFT_PASSWORD={{overcloud.attributes.SwiftPassword}}
    +  export OVERCLOUD_SWIFT_HASH={{overcloud.attributes.SwiftHashSuffix}}
    +
    +  source /etc/tripleo/overcloudrc
    +
    +  tripleo init-keystone -p $OVERCLOUD_ADMIN_PASSWORD $OVERCLOUD_ADMIN_TOKEN \
    +      $OVERCLOUD_IP admin@example.com heat-admin@$OVERCLOUD_IP
    +  tripleo setup-endpoints $OVERCLOUD_IP --cinder-password $OVERCLOUD_CINDER_PASSWORD \
    +      --glance-password $OVERCLOUD_GLANCE_PASSWORD \
    +      --heat-password $OVERCLOUD_HEAT_PASSWORD \
    +      --neutron-password $OVERCLOUD_NEUTRON_PASSWORD \
    +      --nova-password $OVERCLOUD_NOVA_PASSWORD \
    +      --swift-password $OVERCLOUD_SWIFT_PASSWORD \
    +      --enable-horizon
    +  keystone role-create --name heat_stack_user
    +          
    +
    +
  • +
+

+ {% blocktrans %} + For more information, see our documentation + . We are working on improving your experience here. + {% endblocktrans %} +

{% endif %} @@ -179,7 +227,7 @@

{% endfor %} {% else %} - You need to initialize your OpenStack Deployment first. + {% trans "You need to initialize your OpenStack Deployment first." %} {% endif %} diff --git a/tuskar_ui/infrastructure/static/infrastructure/less/horizon_upgrades.less b/tuskar_ui/infrastructure/static/infrastructure/less/horizon_upgrades.less index 11c3513f8..19f9a4485 100644 --- a/tuskar_ui/infrastructure/static/infrastructure/less/horizon_upgrades.less +++ b/tuskar_ui/infrastructure/static/infrastructure/less/horizon_upgrades.less @@ -221,3 +221,8 @@ h1.brand a { margin: 0 0 2em 0; } } + +// general +a[data-target] { + cursor: pointer; +} diff --git a/tuskar_ui/infrastructure/static/infrastructure/less/individual_pages.less b/tuskar_ui/infrastructure/static/infrastructure/less/individual_pages.less index 9bc000e08..e9332944d 100644 --- a/tuskar_ui/infrastructure/static/infrastructure/less/individual_pages.less +++ b/tuskar_ui/infrastructure/static/infrastructure/less/individual_pages.less @@ -67,3 +67,10 @@ font-weight: normal; } } + +#detail__overview { + ul { + list-style: disc; + margin: 0 0 9px 25px; + } +}