packstack | Install utility to deploy OpenStack | Continuous Deployment library

 by   redhat-openstack Python Version: 22.0.0.0rc1 License: Apache-2.0

kandi X-RAY | packstack Summary

kandi X-RAY | packstack Summary

packstack is a Python library typically used in Devops, Continuous Deployment applications. packstack has no bugs, it has build file available, it has a Permissive License and it has low support. However packstack has 2 vulnerabilities. You can download it from GitHub.

Install utility to deploy OpenStack on multiple hosts. This is the GitHub mirror for https://opendev.org/x/packstack.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              packstack has a low active ecosystem.
              It has 426 star(s) with 173 fork(s). There are 70 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              packstack has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of packstack is 22.0.0.0rc1

            kandi-Quality Quality

              packstack has 0 bugs and 0 code smells.

            kandi-Security Security

              packstack has 2 vulnerability issues reported (0 critical, 0 high, 2 medium, 0 low).
              packstack code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              packstack is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              packstack releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              packstack saves you 4824 person hours of effort in developing the same functionality from scratch.
              It has 10011 lines of code, 449 functions and 83 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed packstack and discovered the below as its top functions. This is intended to give you an instant insight into packstack implemented functionality, and help decide if they suit your requirements.
            • Create the VPN plugins
            • Tries to build the FW details
            • Return whether or not OpenVswitch VXLAN is used
            • Add key to the sorted dictionary
            • Prepare server setup
            • Return a set of all hostnames in the config
            • Manage the centos release - release - release repo
            • Checks connectivity between two nspaces
            • Execute a command
            • Create a storage manifest
            • Check network status
            • Create a builder manifest
            • Translate a CIDR address to an IP address
            • Append a recipe
            • Create and configure dhcp
            • Run Packstack install
            • Create a compute manifest
            • Create self - signed certificate
            • Create the manifest
            • Install and install puppet packages
            • Copy puppet modules to disk
            • Create common manifest
            • Applies puppet manifest to the config file
            • Create l2 agent manifests
            • Attempt to connect to a domain socket
            • Main entry point
            Get all kandi verified functions for this library.

            packstack Key Features

            No Key Features are available at this moment for packstack.

            packstack Examples and Code Snippets

            No Code Snippets are available at this moment for packstack.

            Community Discussions

            QUESTION

            AWS cloudformation nested stacks failed by template URL
            Asked 2021-Dec-07 at 22:36

            I'm new with cloudformation but on currently project have a template that have all resources in a unique file and we try to separate in multiple files with nested stacks option. When I try to deploy templates, execution failed by next message:

            ...

            ANSWER

            Answered 2021-Nov-18 at 23:37

            TemplateURL should be written as the URL in S3, therefore https://....

            In this doc, written as:

            Source https://stackoverflow.com/questions/70027685

            QUESTION

            Cinder volumes fail to create when using a qcow2 image. Openstack/Packstack
            Asked 2021-Sep-03 at 11:09

            We are using a packstack installation of Openstack-Train with NFS as the backend driver for Cinder.

            We are unable to create VMs using qcow2 images which were built from a cinder volume.

            Message Build of instance 8056996a-487c-4730-9ee0-f55dbf2fc320 aborted: Volume 7506ee68-6c9f-427c-bb37-ab6213de1b8e did not finish being created even after we waited 80 seconds or 27 attempts. And its status is error. Code 500 Details Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2168, in _do_build_and_run_instance filter_properties, request_spec) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2478, in build_and_run_instance bdms=block_device_mapping, tb=tb) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in exit self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2428, in _build_and_run_instance request_group_resource_providers_mapping) as resources: File "/usr/lib64/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2656, in _build_resources reason=e.format_message()) BuildAbortException: Build of instance 8056996a-487c-4730-9ee0-f55dbf2fc320 aborted: Volume 7506ee68-6c9f-427c-bb37-ab6213de1b8e did not finish being created even after we waited 80 seconds or 27 attempts. And its status is error. Created Aug. 25, 2021, 7:15 a.m.

            Here are the key configurations made in the cinder.conf

            ...

            ANSWER

            Answered 2021-Sep-03 at 11:09

            Managed to fix this by setting the following parameters in the cinder.conf file (/etc/cinder/cinder.conf):

            Source https://stackoverflow.com/questions/68938341

            QUESTION

            How to access instance from outside?
            Asked 2021-Mar-18 at 13:50

            I installed openstack using packstack. But I don't know how to configure network.

            I want to access my instance using ssh like this.

            Is it possible to do this?

            ...

            ANSWER

            Answered 2021-Mar-18 at 07:24

            Actually, without external network its not possible.Your instance should have external(public) ip.I'm using this way but you have other option like proxy.

            if your Centos7 machine can connect your instance;

            Use HaProxy at Centos machine and proxy instance ssh port to specific centos7 port and connect using this port.I'm using this way on microstack.

            Source https://stackoverflow.com/questions/66684921

            QUESTION

            Cannot spin instance more than 2gb memory in openstack packstack
            Asked 2021-Jan-17 at 03:21

            I deployed openstack packstack (all-in-one) in centos7 server with 8vcpu and 16gb memory. Deployment of packstack openstack successful completed. I can spin instances with flavor with 2gb or less but when use 4g or 6g ith will return fail instantiate error.

            ...

            ANSWER

            Answered 2021-Jan-17 at 03:21

            In my experience, recent versions of Packstack are rather memory-hungry. You can use top and sort by VIRT and/or RES to get an idea which components use memory most. Then try switching off parts that you don't need.

            On your running server, you could try stopping the corresponding systemd services if you don't need them. You could also look for parameters in /etc//.conf that configure number of workers, reduce them and restart the service. Example: osapi_compute_workers in one of the /etc/nova config files.

            Alternatively, generate a default answer file and set appropriate parameters like CONFIG_something_INSTALL to "n". I don't know what Packstack installs by default these days; CONFIG_HEAT_INSTALL or CONFIG_CEILOMETER_INSTALL are hot candidates (of course, only if you don't need them). Then reinstall from scratch.

            Source https://stackoverflow.com/questions/65729957

            QUESTION

            How to create multiple provider network with multiple NIC port in Openstack
            Asked 2020-Dec-07 at 00:00

            how to setup multiple provider network in openstack packstack. I'm deploying on single server with 4 port nic physical. The setup as below

            ...

            ANSWER

            Answered 2020-Dec-07 at 00:00

            I managed to get it works as follows:-

            Source https://stackoverflow.com/questions/65047080

            QUESTION

            How to enable and leverage OVS-DPDK in Openstack
            Asked 2020-Nov-16 at 09:42

            I have successfully deployed openstack packstack (all-in-one) in single VM. I'm running Centos7 VM. Everything work well and able to instantiate VM over native OVS networking. I plan to have OVS-DPDK enable in my openstack. I have gone through some documentation but still not clear how to enable it. I understand Openstack Queens OVS is already DPDK support.I have seen people asking the same but no answer and I would like again to request on how I can have DPDK support to be enabled over my running openstack. Few method to change neutron configuration file or by deploying SDN controller. Hope no need to redeploy..anyway further advise would be much appreciated.

            ...

            ANSWER

            Answered 2020-Nov-16 at 09:42

            Openstack and OVS are 2 different processes, which communicates via openflow rules. That is using neutron plugin which is used in OpenStack needs to configured for the ports in use. In OVS one needs to start with controller IP openstack neutron controller. Hence changes are listed as

            1. use neutron or similar plugin for network configuration.
            2. updated the neutron plugin config file for desired ports for OVS.
            3. OVS vswitchd is started with IP address of controller.

            Note: OVS binary needs to be build with DPDK libraries for having DPDK support. Do not expect by installing DPDK on the distro the OVS binary will become DPDK supported.

            Source https://stackoverflow.com/questions/64819491

            QUESTION

            Openstack All-In-One local storage size
            Asked 2020-Oct-16 at 05:19

            after few deployment of openstack (packstack all-in-one) I founded that (from hypervisor summary) the local storage size is around 40G-50G. The disk storage that I deployed is actually around 150G and 250G but keep getting around 40-50G in openstack. The same behavior when I run over VM and baremetal. During OS(Centos7) installation I just using default auto setup...all storage size (sda) and never set manual. For example this is the VGS output from VM with 150G storage running openstack

            ...

            ANSWER

            Answered 2020-Oct-16 at 05:19

            What do you mean by storage size? If you mean the amount of storage for Cinder volumes, adjust the CONFIG_CINDER_VOLUMES_SIZE parameter. The documentation isn't clear about it, but I think the number is in Gigabytes. However, this only works if your root filesystem has enough space.

            If you mean ephemeral storage, you also need to have a root filesystem that is large enough. I see that your system has three LVM volumes for root, swap and home. My suspicion is that your root volume (named centos-root) is too small. If that is the case, create a Centos installation that does not separate root and home and try again.

            Adding additional information to answer the below questions:

            The storage size reported in the hypervisor summary refers to the space available in Nova's instances directory, probably under /var/lib/nova (not sure). Which is on your root filesystem.

            Packstack uses an LVM volume group as the storage backend for Cinder. The physical volume for that volume group resides on a loop device /dev/loop1, which is a file that resides on the root filesystem. Therefore, Cinder's storage does take up space in your root filesystem. Use the command losetup -a to see that file.

            Source https://stackoverflow.com/questions/64346319

            QUESTION

            Openstack Compute fails to run instances based on flavor and number of instances
            Asked 2020-Aug-31 at 14:04

            I am attempting to create various instances and Compute is failing to spawn some of them.

            My instance has the following characteristics:

            Name: ThirdInstance Created from image: CentOS-7-x86_64 Flavor: m1.medium (2 VCPU, 4GB RAM, 40GB Disk)

            I have two other instances running. I was unable to spawn these instances unless I used the flavor m1.small (1VCPU, 2GB RAM, 20GB Disk). Any deviation from that flavor and the instance spawning failed.

            Unfortunately, my ThirdInstance fails to spawn regardless of the flavor used. I have tried creating it with m1.small and it fails consistently.

            I looked at the Nova logs, and am noting that when I attempt to create this instance I am consistently getting the following message in the nova-conductor.log file:

            ...

            ANSWER

            Answered 2020-Aug-31 at 14:04

            Seems to me like you have not enough resources, especially CPU-cores. You have written, that your node has only two cores and you had already spawned 2 VMs with small flavor, which requires 1 core each. This No valid host was found-error comes also, when no compute-host was found with enough resources for the selected flavor.

            You can check this by yourself:

            Run openstack hypervisor list to list your hypervisor and then openstack hypervisor show with the id of your hypervisor. In the output you find vcpus and vcpus_used. vcpus is the maximum available number of cpu-cores on the selected compute-host. Based on the information of your question, I think both of these values are 2 in your case and that would show you, that you have not enough resources for your third VM.

            Source https://stackoverflow.com/questions/63650069

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            PackStack 2012.2.3 in Red Hat OpenStack Essex and Folsom can create the answer file in insecure directories such as /tmp or the current working directory, which allows local users to modify deployed systems by changing this file.
            OpenStack PackStack 2012.2.1, when the Open vSwitch (OVS) monolithic plug-in is not used, does not properly set the libvirt_vif_driver configuration option when generating the nova.conf configuration, which causes the firewall to be disabled and allows remote attackers to bypass intended access restrictions.

            Install packstack

            You can download it from GitHub.
            You can use packstack like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/redhat-openstack/packstack.git

          • CLI

            gh repo clone redhat-openstack/packstack

          • sshUrl

            git@github.com:redhat-openstack/packstack.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link