Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a2b3d7a
fixes docstring formatting in RDS and removes the README.md from the …
Nils-Magnus Jan 14, 2020
3f2ff7b
adds more structure to the documentation and provides a history
Nils-Magnus Jan 15, 2020
f6d7b19
cleans up the documentation.
Nils-Magnus Jan 16, 2020
d7d6c92
collects all changes from previous commit, which was almost empty.
Nils-Magnus Jan 16, 2020
379bea8
Merge branch 'doc' of https://github.com/OpenTelekomCloud/python-otce…
Nils-Magnus Jan 20, 2020
5017363
enhances the structure of two index files
Nils-Magnus Jan 23, 2020
a72663c
Installation and Configuration sources resorted
tischrei Mar 5, 2020
0846a03
reordering section Installation and OpenStack CLI
tischrei Mar 6, 2020
465a5c8
reordering SDK guides, service proxies and other stuff
tischrei Mar 6, 2020
e76fbbc
user guides reordered
tischrei Mar 10, 2020
d35509a
user guides reordered
tischrei Mar 10, 2020
3f14267
restructuring done
tischrei Mar 10, 2020
47ad81f
configuration section updated
tischrei Mar 10, 2020
ebd414d
improve the enforcer output during tests
Nils-Magnus Mar 11, 2020
1b16439
introduce the CLI chapter
Nils-Magnus Mar 11, 2020
fda611f
fix pep8 issues, mostly whitespace
Nils-Magnus Mar 11, 2020
a76d959
SDK getting started reworked
tischrei Mar 12, 2020
d1a698a
fix RDS proxy attrs
tischrei Mar 13, 2020
09e7375
smaller fixes
tischrei Mar 13, 2020
a66350c
streamline the main page documentation
Nils-Magnus Mar 18, 2020
7ced685
fix spelling and language
Nils-Magnus Mar 18, 2020
f7e598a
auto-scaling started
tischrei Mar 18, 2020
e5e8d22
AS Config finished
tischrei Mar 19, 2020
5337a70
explain details about installation options
Nils-Magnus Mar 19, 2020
4870cc2
Merge branch 'doc' of https://github.com/OpenTelekomCloud/python-otce…
Nils-Magnus Mar 19, 2020
577e2f2
list authors
Nils-Magnus Mar 19, 2020
9f04b71
clean up the top directory docs
Nils-Magnus Mar 20, 2020
15abd03
Finished Auto-Scaling SDK guide and pep8 fixes
tischrei Mar 20, 2020
fb67450
Anti-DDoS SDK guide status draft
tischrei Mar 20, 2020
c18e103
Finish Anti-DDoS SDK Guide
tischrei Mar 20, 2020
35d4fae
Update ZuuL config to test tox -e docs
tischrei Mar 20, 2020
9d68b33
update .travis.yml
tischrei Mar 20, 2020
6d96fb7
deleted coverage content and saved locally until content is available…
tischrei Mar 20, 2020
4c1d489
minor pep8 correction
tischrei Mar 20, 2020
070b578
Renew coverage.rst
tischrei Mar 23, 2020
7ca8c0b
added nat and ces to coverage.rst
tischrei Mar 23, 2020
2c30acd
CCE SDK guide added
tischrei Mar 25, 2020
d9c7ff8
Update .zuul.yaml
gtema Feb 6, 2020
fef7986
Create bindep.txt
gtema Feb 6, 2020
f3f0baf
some dns private zone fixes
gtema Feb 11, 2020
b04e8f7
Zuul (#63)
gtema Feb 14, 2020
3a70104
AS corrections for new API Version (#60)
tischrei Feb 24, 2020
33ace9c
add unit test changes
gtema Feb 24, 2020
d3d4cfe
extend help message for DNS zone list
gtema Feb 24, 2020
cf5254d
Merge branch 'master' into doc
tischrei Mar 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
.stestr/
.testrepository
.tox
AUTHORS
build
ChangeLog
dist
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ language: python
cache: pip
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.6
env: TOXENV=py36
- python: 3.6
Expand Down
2 changes: 1 addition & 1 deletion .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
jobs:
- tox-py37
- tox-pep8
# - tox-docs
- tox-docs
- tox-functional
gate:
jobs:
Expand Down
7 changes: 7 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Artem Goncharov <artem.goncharov@t-systems.com>
György Hodi <hodigy@gmail.com>
Kristian Kucerak <kucerakk@gmail.com>
Nils Magnus <magnus@linuxtag.org>
Tino Schreiber <tino.schreiber@t-systems.com>
Vineet Pruthi <48789821+vineet-pruthi@users.noreply.github.com>
Zsolt Nagy <zsoltn@gmail.com>
49 changes: 17 additions & 32 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,45 +1,30 @@
.. _contributing:
Contributing to OTC Extensions
==============================

===================================
Contributing to python-openstacksdk
===================================
OTC Extension are developed as a community effort initiated by
T-Systems International GmbH for the Open Telekom Cloud under an Open
Source license. All code is licensed under the Apache 2.0 license.

If you're interested in contributing to the python-openstacksdk project,
the following will help get you started.
We are happily accepting pull requests. Please reach out to the
project to sort out legal code contribution. If you're interested in
contributing to the project, have a look in the `contributors
section`_ of our documentation.

Contributor License Agreement
-----------------------------
We follow the recommendation of the `OpenStack's workflow`_ for open
source contributions and value the four opens.

.. index::
single: license; agreement

In order to contribute to the python-openstacksdk project, you need to have
signed OpenStack's contributor's agreement.

Please read `DeveloperWorkflow`_ before sending your first patch for review.
Pull requests submitted through GitHub will be ignored.

.. seealso::

* http://wiki.openstack.org/HowToContribute
* http://wiki.openstack.org/CLA

.. _DeveloperWorkflow: http://docs.openstack.org/infra/manual/developers.html#development-workflow

Project Hosting Details
-------------------------
-----------------------

Project Documentation
http://docs.openstack.org/sdks/python/openstacksdk/
https://python-otcextensions.readthedocs.io/

Bug tracker
https://bugs.launchpad.net/python-openstacksdk

Mailing list (prefix subjects with ``[sdk]`` for faster responses)
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
https://github.com/opentelekomcloud/python-otcextensions/issues

Code Hosting
https://git.openstack.org/cgit/openstack/python-openstacksdk
https://github.com/opentelekomcloud/python-otcextensions/

Code Review
https://review.openstack.org/#/q/status:open+project:openstack/python-openstacksdk,n,z
.. _contributors section: https://python-otcextensions.readthedocs.io/en/latest/contributor/
.. _OpenStack's workflow: http://docs.openstack.org/infra/manual/developers.html#development-workflow
108 changes: 0 additions & 108 deletions HACKING.rst

This file was deleted.

137 changes: 137 additions & 0 deletions README-save
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
OTC Extensions
==============

.. image:: https://travis-ci.org/OpenTelekomCloud/python-otcextensions.svg?branch=master
:target: https://travis-ci.org/OpenTelekomCloud/python-otcextensions

.. image:: https://readthedocs.org/projects/python-otcextensions/badge/?version=latest
:target: http://python-otcextensions.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

OTCExtensions is a project to bring OTC extensions into the native OpenStack
toolstack. Covered are currently following items:

* `python-openstacksdk`
* `python-openstackclient`

The primary goal is to provide a possibility to use native OpenStack SDK and
CLI with the OTC additional services

Getting Started
===============

The very first step to get started is to install otcextensions into your
system. For this please follow installation instructions_

.. _instructions: http://python-otcextensions.readthedocs.io/en/latest/install/index.html

Next step would be logically configuration

Configuration
=============

openstack.config
================

The recommended way, since it is the most efficient way to configure both SDK
and the CLI in one place

``openstack.config`` will find cloud configuration for as few as 1 clouds and
as many as you want to put in a config file. It will read environment variables
and config files, and it also contains some vendor specific default values so
that you don't have to know extra info to use OpenStack

* If you have a config file, you will get the clouds listed in it
* If you have environment variables, you will get a cloud named `envvars`
* If you have neither, you will get a cloud named `defaults` with base defaults

Sometimes an example is nice.

Create a ``clouds.yaml`` file:

.. code-block:: yaml

clouds:
otc:
auth:
username: 'USER_NAME'
password: 'PASS'
project_name: 'eu-de'
auth_url: 'https://iam.eu-de.otc.t-systems.com:443/v3'
user_domain_name: 'OTC00000000001000000xxx'
interface: 'public'
identity_api_version: 3 # !Important
ak: 'AK_VALUE' # AK/SK pair for access to OBS
sk: 'SK_VALUE'

Please note: ``openstack.config`` will look for a file called ``clouds.yaml``
in the following locations:

* Current Directory
* ``~/.config/openstack``
* ``/etc/openstack``

AK/SK values required for access to some services (i.e. OBS) can be either
configured as shown above in the clouds.yaml/secure.yaml, or they can be
automatically retrieved from the S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY.
Values from the clouds.yaml/secure.yaml take precedence over the ones from
environment.

With this configuration you can start using openstackCLI simply ``openstack
--os-cloud otc``

More information at https://developer.openstack.org/sdks/python/openstacksdk/users/config

Old style way
=============

The CLI can be configured via environment variables and command-line options as
listed in
https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html
or https://developer.openstack.org/sdks/python/openstacksdk/users/config.

Authentication using username/password is often used::

export OS_AUTH_URL=<url-to-openstack-identity>
export OS_IDENTITY_API_VERSION=3
export OS_PROJECT_NAME=<project-name>
export OS_PROJECT_DOMAIN_NAME=<project-domain-name>
export OS_USERNAME=<username>
export OS_USER_DOMAIN_NAME=<user-domain-name>
export OS_PASSWORD=<password> # (optional)
export S3_ACCESS_KEY_ID=<access_key>
export S3_SECRET_ACCESS_KEY=<secret_access_key>

The corresponding command-line options look very similar::

--os-auth-url <url>
--os-identity-api-version 3
--os-project-name <project-name>
--os-project-domain-name <project-domain-name>
--os-username <username>
--os-user-domain-name <user-domain-name>
[--os-password <password>]

If a password is not provided above (in plaintext), you will be interactively
prompted to provide one securely.

Authentication may also be performed using an already-acquired token
and a URL pointing directly to the service API that presumably was acquired
from the Service Catalog::

export OS_TOKEN=<token>
export OS_URL=<url-to-openstack-service>

The corresponding command-line options look very similar::

--os-token <token>
--os-url <url-to-openstack-service>

In addition to that a regular `clouds.yaml` configuration file can be used


Links
=====

* `Issue Tracker <https://github.com/OpenTelekomCloud/python-otcextensions/issues>`_
* `Documentation <http://python-otcextensions.readthedocs.io/en/latest/>`_
Loading