Ask Your Question

rvinkovic's profile - activity

2017-04-05 21:03:21 -0600 asked a question openstack newton odl boron floating ip not working

I'm trying to integrate odl in openstack but i cant get floating ip and connectivity external network to work. 192.168.0.1/24 is provider network 10.0.0.0/24 is management net and 10.0.1.0/24 is overlay network but i dont think that is needed because for now it is only 1 compute nod DHCP sometime does not work too, i need to reset openvswitch service and odl controller serveral times, delete networks to get it working. External network is not working at all compute node /etc/network/interfaces

# The primary network interface
auto ens3
iface ens3 inet dhcp
#management network
auto ens8
iface ens8 inet static
        address 10.0.0.31
        netmask 255.255.255.0

#provider network
auto ens9
iface ens9 inet manual
        up ip link set dev $IFACE up
        down ip link set dev $FACE down

#overlay network
auto ens10
iface ens10 inet static
        address 10.0.1.31
        netmask 255.255.255.0

ovs-vsctl show

1c3ec4f2-c794-41ee-b198-48dce5bbb6bf
    Manager "tcp:10.0.0.21:6640"
        is_connected: true
    Bridge br-int
        Controller "tcp:10.0.0.21:6653"
            is_connected: true
        fail_mode: secure
        Port "tun048d4da29ba"
            Interface "tun048d4da29ba"
                type: vxlan
                options: {key=flow, local_ip="10.0.1.31", remote_ip="10.0.1.31"}
        Port br-int
            Interface br-int
                type: internal
        Port "tap846c10fd-58"
            Interface "tap846c10fd-58"
        Port "tapa83670f9-65"
            Interface "tapa83670f9-65"
                type: internal
        Port "ens9"
            Interface "ens9"

ovs-vsctl get Open_vSwitch . other_config

{`local_ip="10.0.1.31", provider_mappings="provider:ens9"}`

ip netns exe qdhcp-4c8d3083-5c31-40c2-8758-fc10eb46e290 ifconfig

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tap48d20638-e4 Link encap:Ethernet  HWaddr fa:16:3e:48:47:55  
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe48:4755/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)





ip netns exe qdhcp-87c91273-7bfb-4fb5-bd35-0ecfaa573e58 ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:1152 (1.1 KB)  TX bytes:1152 (1.1 KB)

tapa83670f9-65 Link encap:Ethernet  HWaddr fa:16:3e:06:2f:a3  
          inet addr:10.0.1.2  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe06 ...
(more)
2017-03-29 02:52:17 -0600 received badge  Famous Question (source)
2017-03-22 11:02:05 -0600 received badge  Notable Question (source)
2017-03-13 13:41:22 -0600 received badge  Popular Question (source)
2017-03-12 21:52:25 -0600 commented question Neutron lbaas- Could not load neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

i instaled agent in controller to try things because i was getting deseperate. Wouldn't i need to install agent on nework node where my OVS is and on controller just tell neutron to activate the service and that lbaas agent will connect to it?

2017-03-12 21:50:06 -0600 commented question Neutron lbaas- Could not load neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

If i understand correctly this version 1 lbaas which is not supported in in openstack newton, so you need to use v2 agent which is installed. But should agent have any difference because neutron server wont start with that configuration and i dont think that agent has to do anything with it or?

2017-03-12 15:12:34 -0600 asked a question Neutron lbaas- Could not load neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

Hi, i'm trying to install lbaas for my openstack. Im on ubuntu16.04 Openstack Newton with 3 node OVS deploy. Following this guide for lbaas https://docs.openstack.org/ocata/networking-guide/config-lbaas.html (https://docs.openstack.org/ocata/netw...)

Controller

 aptitude search neutron-lbaas
p   neutron-lbaas-agent                                                                                            - Neutron is a virtual network service for Openstack - LBaaS agent                                                         
i A neutron-lbaas-common                                                                                           - Neutron is a virtual network service for Openstack - common                                                              
i   neutron-lbaasv2-agent                                                                                          - Neutron is a virtual network service for Openstack - LBaaSv2 agent                                                       
i A python-neutron-lbaas                                                                                           - Loadbalancer-as-a-Service driver for OpenStack Neu

so neutron-lbaas-common neutron-lbaasv2-agent python-neutron-lbaas are installed. Agent is probably not necessary on the controller node but just in case...

/etc/neutron/neutron.conf

[DEFAULT]
debug= true
core_plugin = ml2
service_plugins = router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
allow_overlapping_ips = True


dhcp_agents_per_network = 1


transport_url = rabbit://openstack:mjvnzq8@controller
auth_strategy = keystone
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
core_plugin = ml2
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://neutron:mjvnzq8@controller/neutron
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = *****
[matchmaker_redis]
[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = *****
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]
[qos]
[quotas]
[ssl]

[service_providers]
service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

So that is the server side, after i restart it wont work anymore because it cant load the lbaas driver

/var/log/neutron/neutron-server.log

2017-03-12 20:55:16.464 769 INFO neutron.common.config [-] Logging enabled!
2017-03-12 20:55:16.464 769 INFO neutron.common.config [-] /usr/bin/neutron-server version 9.0.0
2017-03-12 20:55:16.464 769 INFO neutron.common.config [-] Logging enabled!
2017-03-12 20:55:16.465 769 INFO neutron.common.config [-] /usr/bin/neutron-server version 9.0.0
2017-03-12 20:55:16.473 769 INFO neutron.manager [-] Loading core plugin: ml2
2017-03-12 20:55:16.669 769 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['flat', 'vlan', 'vxlan']
2017-03-12 20:55:16.678 769 INFO neutron.plugins.ml2.drivers.type_flat [-] Allowable flat physical_network names: ['provider']
2017-03-12 20:55:16.681 769 INFO neutron.plugins.ml2.drivers.type_vlan [-] Network VLAN ranges: {'provider': []}
2017-03-12 20:55:16.684 769 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'vlan', 'vxlan']
2017-03-12 20:55:16.684 769 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'vlan', 'vxlan']
2017-03-12 20:55:16.685 769 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['vxlan']
2017-03-12 20:55:16.685 769 INFO neutron.plugins.ml2.managers [-] Configured extension driver names: ['port_security']
2017-03-12 20:55:16.689 769 INFO neutron.plugins.ml2.managers [-] Loaded extension driver names: ['port_security']
2017-03-12 20:55:16.690 769 INFO neutron.plugins.ml2.managers [-] Registered extension drivers: ['port_security']
2017-03-12 20:55:16.690 769 INFO neutron.plugins.ml2.managers [-] Configured mechanism driver names: ['openvswitch', 'l2population']
2017-03-12 20:55:16.692 769 WARNING neutron.agent.securitygroups_rpc [-] Driver configuration doesn't match with enable_security_group
2017-03-12 20 ...
(more)
2017-03-08 08:51:57 -0600 answered a question ERROR ceilometer AttributeError: 'NoneType' object has no attribute 'find'

just followed by the guide and got same error... did you resolve this?

EDIT: Newton guide is not complete, it doesn't explain how to install and configure gnocchi. https://docs.openstack.org/mitaka/install-guide-ubuntu/ceilometer-install.html (https://docs.openstack.org/mitaka/ins...) this is guide for mitaka where you use mongodb for celiometer. Just tried that and celiometer works for now.

2017-03-03 05:02:02 -0600 commented answer Router status is down when integrated with OpenDayLight

Bugs everywhere and no answers on forums and anywhere. I feel you. I was talking with my mentor today and i think will not use ODL for my Openstack because bugs and half of the things dont work still.

2017-03-02 17:13:16 -0600 answered a question Router status is down when integrated with OpenDayLight

Having same problem. I but it was working yesterday normally but after restart everything is messed up. On this page http://serverascode.com/2017/01/09/opendaylight-boron-openstack-networking-odl.html (link text) it says that icmp is not working(that is true i did test it yesterday and ssh was working but ping didnt). I dont see any errors anywhere but it is still not working. Try to ssh into floating ip or ssh from vm to the compute server.

2017-02-27 09:56:48 -0600 received badge  Enthusiast
2017-02-12 23:49:10 -0600 received badge  Famous Question (source)
2017-01-15 09:51:31 -0600 received badge  Popular Question (source)
2017-01-15 09:51:31 -0600 received badge  Notable Question (source)
2016-12-17 11:13:28 -0600 asked a question Unable to login to horizon

Hello everyone,

I'm following ubuntu 16.04 guide for openstack newton and everything is working except I can't login to horizon through browser. If i try to login with:

default admin password

I get Invalid Credentials.

admin_openrc have same password and username and everything works.

/var/log/apache2/error.log

[Thu Dec 15 02:59:34.020238 2016] [wsgi:error] [pid 23628:tid 140123614537472] DEBUG:keystoneauth.session:Request returned failure status: 404
[Thu Dec 15 02:59:34.021453 2016] [wsgi:error] [pid 23628:tid 140123614537472] Login failed for user "admin"

.

var/log/apache2/keystone_acces.log
10.0.0.11 - - [15/Dec/2016:03:59:12 +0100] "GET /v3/auth/tokens HTTP/1.1" 200 3474 "-" "python-keystoneclient"
combine

openstack user list

    +----------------------------------+---------+
    | ID                               | Name    |
    +----------------------------------+---------+
    | 1229dd94c8914430b60ce910edb3af43 | glance  |
    | 1e87150766544378b6cd8e33cfb3f843 | neutron |
    | 491a5f6c651f4e38b57eac9e61b0de93 | admin   |
    | 82e6f41c4ae54dcfab716b955168c423 | nova    |
    | e677b5e212054630814e96b349b79185 | demo    |
    +----------------------------------+---------+

openstack domain list

+---------+---------+---------+--------------------+
| ID      | Name    | Enabled | Description        |
+---------+---------+---------+--------------------+
| default | Default | True    | The default domain |
+---------+---------+---------+--------------------+

/etc/openstack-dashboard/local_settings.py.bak

import os
from django.utils.translation import ugettext_lazy as _
from horizon.utils import secret_key
from openstack_dashboard import exceptions
from openstack_dashboard.settings import HORIZON_CONFIG
DEBUG = True
WEBROOT = '/'
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key')
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
TIME_ZONE="UTC"
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
    "identity": 3,
    "image": 2,
    "volume": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
OPENSTACK_NEUTRON_NETWORK = {
    'enable_router': False,
    'enable_quotas': False,
    'enable_ipv6': False,
    'enable_distributed_router': False,
    'enable_ha_router': False,
    'enable_lb': False,
    'enable_firewall': False,
    'enable_vpn': False,
    'enable_fip_topology_check': False,
}
OPENSTACK_KEYSTONE_BACKEND = {
    'name': 'native',
    'can_edit_user': True,
    'can_edit_group': True,
    'can_edit_project': True,
    'can_edit_domain': True,
    'can_edit_role': True,
}
OPENSTACK_HYPERVISOR_FEATURES = {
    'can_set_mount_point': False,
    'can_set_password': False,
    'requires_keypair': False,
    'enable_quotas': True
}
OPENSTACK_CINDER_FEATURES = {
    'enable_backup': False,
}
OPENSTACK_HEAT_STACK = {
    'enable_user_pass': True,
}
IMAGE_CUSTOM_PROPERTY_TITLES = {
    "architecture": _("Architecture"),
    "kernel_id": _("Kernel ID"),
    "ramdisk_id": _("Ramdisk ID"),
    "image_state": _("Euca2ools state"),
    "project_id": _("Project ID"),
    "image_type": _("Image Type"),
}
IMAGE_RESERVED_CUSTOM_PROPERTIES = []
API_RESULT_LIMIT = 1000
API_RESULT_PAGE_SIZE = 20
SWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
INSTANCE_LOG_LENGTH = 35
DROPDOWN_MAX_ITEMS = 30
TIME_ZONE = "UTC"
LOGGING = {
    'version': 1,
    # When set to True this will disable all logging except
    # for loggers specified in this configuration dictionary. Note that
    # if nothing is specified here and disable_existing_loggers is True,
    # django.db.backends will still log unless it is disabled explicitly.
    'disable_existing_loggers': False,
    'formatters': {
        'operation': {
            # The format of "%(message)s" is defined by
            # OPERATION_LOG_OPTIONS['format']
            'format': '%(asctime)s %(message)s'
        },
    },
    'handlers': {
        'null': {
            'level': 'DEBUG',
            'class': 'logging.NullHandler',
        },
        'console': {
            # Set the level to "DEBUG" for verbose output logging.
            'level': 'INFO',
            'class': 'logging.StreamHandler',
        },
        'operation': {
            'level': 'INFO',
            'class': 'logging.StreamHandler',
            'formatter': 'operation',
        },
    },
    'loggers': {
        # Logging from django.db.backends is VERY verbose, send to null
        # by default.
        'django.db.backends': {
            'handlers': ['null'],
            'propagate': False,
        },
        'requests': {
            'handlers': ['null'],
            'propagate': False,
        },
        'horizon': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'horizon.operation_log': {
            'handlers': ['operation'],
            'level': 'INFO',
            'propagate': False,
        },
        'openstack_dashboard': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'novaclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'cinderclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'keystoneclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'glanceclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'neutronclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'heatclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'ceilometerclient': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': False,
        },
        'swiftclient ...
(more)
2016-12-15 16:52:30 -0600 received badge  Supporter (source)