Giter Club home page Giter Club logo

csa-ce's Introduction

HPE Cloud Service Automation Community Edition

HPE Cloud Service Automation Community Edition

This repo contains scripts which start HPE Cloud Service Automation Community Edition 4.7 (HPE CSA CE) in Docker.

HPE CSA CE solution is composed of four components (each one represents one Docker image): CSA Management Console, Marketplace Portal, HP Operation Orchestration Community Edition (HP OO CE) Central Server and PostgreSQL database.

Concepts

HPE CSA is a cloud management software focused on automation and management of IT services in Hybrid Cloud enviroments.

This community edition of CSA allows users to automate deployments of infrastracture, platform and application services in a hybrid cloud environment. End users can order these services from Marketplace Portal.

• Automation includes infrastructure provisioning, platform software installation or configuration, deployment of application on complex environment like load balancer etc.

• Build the end-to-end process of your application's deployments using various resource providers like VMWare vCenter, AWS EC2, OpenStack, Docker and many others. Embrace components from other systems like HPE OO, Chef, Puppet and HP SA etc. to install or configure software and deploy applications.

• Every service can be tested prior to publishing to consumer catalogs to mitigate the risk of providing not working services.

Key features

Ease of automation. Supports HPE OO CE which is the native automation tool which helps the end user to automate any complex steps. It contains 6000+ pre-created automated operations and workflows which can be leveraged to automate the installation of software and deployment application from day one.

• Offers service application portability across a vendor- neutral ecosystem by using a sophisticated service design modeling based on TOSCA’s guiding principles.

• Simplified cloud design experience with intutive UI and a content store for cloud services

Single IT Service Control Point - Simplifies administration by using a complete IT operations management toolset with a single-pane-of-glass experience across traditional IT, and private and public clouds.

Integration with third party products like vCenter, AWS, OpenStack, Docker Engine, Docker UCP, Docker Cloud, Chef, Puppet and Mesosphere etc. SDK to integrate with home grown products or any third party products

20+ integration with HP Software products like HPE Sitescope, HPE Application Lifecycle Management, HPE Stackato, HPE Oneview etc.

• Build Cloud Agnostic blueprints to deploy the application across different cloud vendor

• Build Cloud Native blueprints to make the application components deployed as “micro-services”

In-built versioning system for application blue-prints and components

• Heavy lifting is already done by the proven software HP OO which acts as a central engine

Authentication & Authorization supports CAC, SSO, LDAP, SAML etc.

Role Based Access Control (RBAC) support

HPE CSA CE trial license limitations

  1. Trial period of 30 days with unlimited deployment for any number of OSI.
  2. After expiry of trial period upto 5 OSI will be available if collection of product usage data by HPE is not selected during product activation.
  3. Upto 25 OSI will be available if collection of product usage data by HPE is selected during product activation.

CSA version

CSA 4.70 

Prerequisites

  1. Set up Docker client with “docker-compose” latest version as given in this Docker site. Reference Site : Install Docker Engine [Reference Site : Install Docker Compose] (https://docs.docker.com/compose/install/)
  2. OS & System Requirements for Docker Client/Workstation
OS  : Ubuntu 12.x and above
HDD : 40GB 
RAM : 8GB 
CPU : 4
Please do not pull the "csa" image directly as it will not stand up the complete HPE CSA product.

The "csa" image has dependency  over other images hosted in “useitwithcsacodar” repository for example PostgreSQL database and HPE Operations Orchestration CE.

Follow the instructions given in the “Instructions to launch HPE CSA CE 4.70 “ below in order to smoothly stand up HPE CSA 4.70 product. 

You can also refer the “docker-compose.yml” file hosted in the “GitHub” to stand up the product. 

Instructions to launch HPE CSA CE 4.70

1.	Commands to execute:
(If you are not creating a folder under /tmp, please make sure there is no docker-compose.yml exists in the directory before you execute the curl command to stand up CSA/CSA"

	•	mkdir /tmp/csa
	•	cd /tmp/csa 
	•	curl -k -L https://github.com/HewlettPackard/csa-ce/raw/master/buildEnv-dockercompose.sh | bash /dev/stdin <hostname> <ipaddress> [<proxyhost>] [<proxyport>]
 
 Proxyhost and Proxyport arguments are optional if the container already have internet access.
 This proxy setting will be used to connect the licensing server over internet. Provide the proxy server details if your container is running behind a firewall.

  Please replace the arguments as per the below instruction,
  <hostname> is the Docker workstation/client hostname
  <ipaddress> is the Docker workstation/client ipaddress
  <proxyhost>  proxy host 
  <proxyport>  proxy port 

  For example, the Curl command should be as below. The hostname and ipaddress are sample
  curl -k -L https://github.com/HewlettPackard/csa-ce/raw/master/buildEnv-dockercompose.sh | bash /dev/stdin mydockerclient.mydomain.com 10.1.1.12 web-proxy.mydomain.com 8080

  Please always stop or start the containers using below commands,
  To stop: docker-compose stop
  To start: docker-compose up --no-recreate -d
  (Kindly note that docker-compose start is currently not supported)

CSA Endpoints

Please find the exposed ports from which you can access various portals of CSA

	CSA Management Console - https://<dockerworkstations_ip>:18444/csa

	Credentials 	
	Username: admin
	Password: cloud
	
	Marketplace Portal - https://<dockerworkstations_ip>:18089

	Credentials 	
	Username: consumer
	Password: cloud

	Operations Orchestration Central - https://<dockerworkstations_ip>:18445/oo
	
	Credentials 
	Username: admin
	Password: cloud	

Documents

The following documentation from the CSA 4.70 full release version is available for your reference:

  1. Concepts Guide

  2. Help Guide - Management Console

  3. Help Guide - Marketplace Portal

  4. Configuration Guide

Important notes

• Launch HP OO Central portal https://<dockerworkstations_ip>:18445/oo

Content Management > Configuration Items > System Properties > CSA_REST_URI should use the host name or IP Address of the Docker client machine instead of localhost, and the port 18444 instead of 8444

Content Management > Configuration Items > System Accounts > CSA_REST_CREDENTIALS should use the user name as ooInboundUser and the password as cloud 

• HPSSO/LWSSO is not enabled. Please refer the help guide to configure HPSSO/LWSSO.

• The scripts which helps for configuring the CSA will be available at the /tmp location of all the containers (please reach out to us for any enhancement on these scripts).

• Any capsule content upload which is new can be done within Docker CSA container and no extra configurations are required. The content zip file location should be mentioned in the

/usr/local/hpe/csa/Tools/CSLContentInstaller/silent_install.xml. 

For CSA, please use silent_install_csa.xml, incase if you have installed CSA license

• Alternatively you can register with HPE using HP Passport sign-in and deploy wide variety of contents from HPE CSA Content store.

For more information please check the [HPLN] (https://hpln.hpe.com/). To get access please check [HPLN Help] (https://hpln.hpe.com/help/content-access)

Known Issues

For product known issues, please refer CSA 4.70 Release Notes here.

License

View license information for the software contained in this repo.

Issues

If you have any problems with the software, or have questions about the software contained in this repo, please write us to [email protected] or GitHub issue.

csa-ce's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csa-ce's Issues

Authentication using LDAP doesn't work

Although user look up test works fine, I keep getting this error:
https://130.175.94.61:18089/error/unauthorized

Access Denied. There was a problem authorizing you.

The exact same setting works on my full CSA setup in another environment but not in this CSA container environment.

tail -f csa-msvc.log hpcloud-idm-service.log csa.log &
==> csa-msvc.log <==
29 Jun 2017 02:38:03,993 [default task-59] ERROR [] IdmRequestTokenProviderImpl : Error requesting Idm: 503 (Service Unavailable) https://130.175.94.61:18444/idm-service/v2.0/tokens/<token>
29 Jun 2017 02:38:48,439 [default task-70] ERROR [] IdmRequestTokenProviderImpl : Error requesting Idm: 503 (Service Unavailable) https://130.175.94.61:18444/idm-service/v2.0/tokens/<token>

==> hpcloud-idm-service.log <==
2017-06-29 02:38:50,318 [default task-73] ERROR com.hp.ccue.identity.hpsso.HpSsoValidator  - HP SSO authentication failed: [VALIDATION_USER_NOT_AUTHENTICATED: Validation: no SSO cookie on request (not authenticated) - more info: User must login]: initContextFromRequest - no SSO cookie on request (not authenticated).RequestURL is [https://130.175.94.61:18444/idm-service/idm/v0/login]; method [GET]; sessionId [7guW0oBJxvVKc9Zv44lHHqdm]; RequestQuery is [NOT EMPTY];
2017-06-29 02:38:50,320 [default task-73] ERROR com.hp.ccue.identity.filter.hpsso.HpSsoFilter  - HP SSO authentication failed: [VALIDATION_USER_NOT_AUTHENTICATED: Validation: no SSO cookie on request (not authenticated) - more info: User must login]: initContextFromRequest - no SSO cookie on request (not authenticated).RequestURL is [https://130.175.94.61:18444/idm-service/idm/v0/login]; method [GET]; sessionId [7guW0oBJxvVKc9Zv44lHHqdm]; RequestQuery is [NOT EMPTY];

==> csa.log <==
29 Jun 2017 02:39:08,232 [default task-112] ERROR [] IdmRequestTokenProviderImpl : Error requesting Idm: 503 (Service Unavailable) https://130.175.94.61:18444/idm-service/v2.0/tokens/<token>

I also realized, there is no idm service.

root@70b827cb6bf7:/usr/local/hpe/csa/jboss-as/standalone/log# service idm status
idm: unrecognized service

password for idmTransportUser should be documented

Hello,

I have noticed that the password for idmTransportUser has been changed from its default value to a new value.
This should be documented somewhere (as it is mandatory to use this password to access the CSA APIs). Otherwise when we try to get a token; there is a a simple 401 error message without further explanation (bad credentials) and that could lead to a lot of research (acutally I though that the incorrect credentials were the payload send in the request to the idm-service).

Olivier

LDAP won't lookup users if User Search Base is defined

Hi,
While binding an organization to LDAP (AD2012), when User Search Base is defined, the lookup user function will fail [Error retrieving user information from LDAP]. When User Search Base is empty, lookup user works. Please see screen shots below for further details.
Regards, PO3.
2016-07-05_093638

Docker for Mac issue in buildEnv-dockercompose.sh

While, yes, the OS requirements do say "Ubuntu" is the OS requirement ... :) ... this can work on OS X under "Docker for Mac". Simple change to buildEnv-dockercompose.sh needed. Change this:

sed -i -e "s/vmhostname/${hostname}/" -e "s/vmipaddress/${ipaddress}/" -e "s/proxyhost/${proxyhost}/" -e "s/proxyport/${proxyport}/" docker-compose.yml

to this:

sed -i "" -e "s/vmhostname/${hostname}/" -e "s/vmipaddress/${ipaddress}/" -e "s/proxyhost/${proxyhost}/" -e "s/proxyport/${proxyport}/" docker-compose.yml

Notice the double quotes after the -i switch. There is a minor difference between the Linux sed and the BSD sed commands. OS X is BSD based so the -i switch requires an argument even if it's empty.

Not redirected properly with MS Azure (NATed VM instance)

Try to use csa-ce docker environment in MS Azure with the following VM instance:

  • Ubuntu 14.04_5LTS
  • 8core/26GBmem
  • hostname: csatest01
  • external IP address: 13.78.126.50
  • internal IP: 10.1.0.4
    I setup the environment with the followting command:
# curl -k -L https://github.com/HewlettPackard/csa-ce/raw/master/buildEnv-dockercompose.sh | bash /dev/stdin csatest01 13.78.126.50

When trying to access to CSA, I've accessed to https://13.78.126.50:18444/csa, but redirecting to 10.1.0.4(internal IP) caused error. (I cannot access to 10.1.0.4 because it is internal IP)

Can I use this environment with such NATed network?
Thanks.

CSA 4.7 - Portal fail registration

Try to register the CSA-CE 4.7, but when I run the first login in page:

https://<my_ip_address>:18444/csa/community-activation/index.jsp#/communityactivation/productregistration

I get
"Error while product registration"

No dns issue, no connection issue.

OO and MP work.

Failure on Centos 7.3

I get the following error and it quits on CentOS 7.3. I have tried some basic debugging and nothing seems to work.

Status: Downloaded newer image for hpsoftware/csa:latest
Creating ooce ...
Creating commondb ...
Creating ooce
Creating ooce ... error

ERROR: for ooce Cannot create container for service ooce: b'mkdir /var/lib/docker/overlay2/447574358d1190233546c5f4c61a7c3dc70a02ba526c887c428Creating commondb ... error

ERROR: for commondb Cannot create container for service commondb: b'mkdir /var/lib/docker/overlay2/2dd2e3b9612ee77dd9c03040d441a16ddf5f7edadeb9766086a9ec87dd0b595e-init/merged/dev/shm: invalid argument'

ERROR: for ooce Cannot create container for service ooce: b'mkdir /var/lib/docker/overlay2/447574358d1190233546c5f4c61a7c3dc70a02ba526c887c428ee36335902215-init/merged/dev/shm: invalid argument'

ERROR: for commondb Cannot create container for service commondb: b'mkdir /var/lib/docker/overlay2/2dd2e3b9612ee77dd9c03040d441a16ddf5f7edadeb9766086a9ec87dd0b595e-init/merged/dev/shm: invalid argument'
Encountered errors while bringing up the project.
Please note the below URLs for your reference
CSA Management Console - https://192.168.1.46:18444/csa
MPP - https://192.168.1.46:18089/mpp

Any help ? The overlay fs is enabled for the docker container.

Container image configures the MPP to use IP address

CSA shouldnt need the IP address of the container for the installation... If we specify a Hostname that should be enough.

Deploying this docker container as is described, makes a configuration in which the mpp login always redirect to provied IP Address... which in many dev setups would not be a static IP.

CSA 4.7 - Missing Service Design

Hello,

After deployment, I have no service design available and I can not install any CSA Capsules.

Here is the message
1

Container Deployment is fine


Changing the  hostname and ipaddress in the yml file
Starting to download all the required images and the containers will be created in the backgroud. This may take sevaral minutes.
Creating network "root_default" with the default driver
Pulling commondb (hpsoftware/useitwithcsacodar:csadb)...
csadb: Pulling from hpsoftware/useitwithcsacodar
6599cadaf950: Pull complete
23eda618d451: Pull complete
f0be3084efe9: Pull complete
52de432f084b: Pull complete
a3ed95caeb02: Pull complete
00d152cb8f7b: Pull complete
b4dbd912e408: Pull complete
511049ccfe7c: Pull complete
Digest: sha256:c8a2a2f807ee55ad351fc3f14ba400c3654bed7a7fee14eaf05e7ee24be3ec93
Status: Downloaded newer image for hpsoftware/useitwithcsacodar:csadb
Pulling ooce (hpsoftware/useitwithcsacodar:ooce1062)...
ooce1062: Pulling from hpsoftware/useitwithcsacodar
15e658a6de17: Pull complete
9ac1fd7cda69: Pull complete
8715d22f5cc2: Pull complete
d0e42a189c3b: Pull complete
41b7042b5523: Pull complete
04bc3986291f: Pull complete
Digest: sha256:aaddadc10ce89a054f1a936f7880368ddc90c05c825756480d18e1b7c764d957
Status: Downloaded newer image for hpsoftware/useitwithcsacodar:ooce1062
Pulling csa (hpsoftware/csa:latest)...
latest: Pulling from hpsoftware/csa
6599cadaf950: Already exists
23eda618d451: Already exists
f0be3084efe9: Already exists
52de432f084b: Already exists
a3ed95caeb02: Already exists
2fc67fff80bc: Pull complete
5cac9b540600: Pull complete
Digest: sha256:cb9f37768f040f9fefb1b07df2dc5bebd81ea88ef6c2e3fb5c17adc0a437fab5
Status: Downloaded newer image for hpsoftware/csa:latest
Creating commondb
Creating ooce
Creating csa
Please note the below URLs for your reference
CSA Management Console - https://16.77.9.164:18444/csa
MPP - https://16.77.9.164:18089/mpp
Operations Orchestration Central - https://16.77.9.164:18445/oo

Any idea ?
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.