First, I ran stack.sh, but it failed for the same reason. So, I ran unstack.sh and then tried stack.sh again. Then it showed this

On Mon, May 27, 2024 at 3:35 PM <smooney@redhat.com> wrote:
On Mon, 2024-05-27 at 13:41 +0530, Lohit S wrote:
> Yes I had not changed any config in local.conf. But I have issue unable to
> start neutron
so devstaack default to useing ovn.

when you are using ovn the q-agt service should not be enbaled

that is what the original error

The q-agt/neutron-agt service must be disabled with OVN.

was saying.

when you run  ./stack.sh its imporant to firsrt un ./unstack.sh
if you dont then you might get failures due to the databases being recreated
and other operations that should onlybe done when the services are not running.

have you run unstack.sh in between the failures you have hit.


>
> +functions-common:_run_under_systemd:1654  sudo systemctl enable
> > devstack@q-svc.service
> > Created symlink
> > /etc/systemd/system/multi-user.target.wants/devstack@q-svc.service \u2192
> > /etc/systemd/system/devstack@q-svc.service.
> > +functions-common:_run_under_systemd:1655  sudo systemctl start
> > devstack@q-svc.service
> > +functions-common:run_process:1687         time_stop run_process
> > +functions-common:time_stop:2421           local name
> > +functions-common:time_stop:2422           local end_time
> > +functions-common:time_stop:2423           local elapsed_time
> > +functions-common:time_stop:2424           local total
> > +functions-common:time_stop:2425           local start_time
> > +functions-common:time_stop:2427           name=run_process
> > +functions-common:time_stop:2428           start_time=1716796743382
> > +functions-common:time_stop:2430           [[ -z 1716796743382 ]]
> > ++functions-common:time_stop:2433           date +%s%3N
> > +functions-common:time_stop:2433           end_time=1716796748164
> > +functions-common:time_stop:2434           elapsed_time=4782
> > +functions-common:time_stop:2435           total=19398
> > +functions-common:time_stop:2437           _TIME_START[$name]=
> > +functions-common:time_stop:2438           _TIME_TOTAL[$name]=24180
> > +lib/neutron:start_neutron_service_and_check:640  neutron_url=
> > http://192.168.122.150:9696/
> > +lib/neutron:start_neutron_service_and_check:642  is_service_enabled
> > tls-proxy
> > +functions-common:is_service_enabled:2077  return 1
> > +lib/neutron:start_neutron_service_and_check:646  '[' '!' -z networking ']'
> > +lib/neutron:start_neutron_service_and_check:647  neutron_url=
> > http://192.168.122.150:9696/networking
> > +lib/neutron:start_neutron_service_and_check:649  echo 'Waiting for
> > Neutron to start...'
> > Waiting for Neutron to start...
> > +lib/neutron:start_neutron_service_and_check:651  local 'testcmd=wget
> >  --no-proxy -q -O- http://192.168.122.150:9696/networking'
> > +lib/neutron:start_neutron_service_and_check:652  test_with_retry 'wget
> >  --no-proxy -q -O- http://192.168.122.150:9696/networking' 'Neutron did
> > not start' 60
> > +functions-common:test_with_retry:2359     local 'testcmd=wget  --no-proxy
> > -q -O- http://192.168.122.150:9696/networking'
> > +functions-common:test_with_retry:2360     local 'failmsg=Neutron did not
> > start'
> > +functions-common:test_with_retry:2361     local until=60
> > +functions-common:test_with_retry:2362     local sleep=0.5
> > +functions-common:test_with_retry:2364     time_start test_with_retry
> > +functions-common:time_start:2407          local name=test_with_retry
> > +functions-common:time_start:2408          local start_time=
> > +functions-common:time_start:2409          [[ -n '' ]]
> > ++functions-common:time_start:2412          date +%s%3N
> > +functions-common:time_start:2412          _TIME_START[$name]=1716796748940
> > +functions-common:test_with_retry:2365     timeout 60 sh -c 'while ! wget
> >  --no-proxy -q -O- http://192.168.122.150:9696/networking; do sleep 0.5;
> > done'
> > +functions-common:test_with_retry:2366     die 2366 'Neutron did not start'
> > +functions-common:die:285                  local exitcode=0
> > [Call Trace]
> > ./stack.sh:1322:start_neutron_service_and_check
> >
> > /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/neutron:652:test_with_retry
> >
> > /home/lohit22/opensource/openstack/devstack/Org/devstack/functions-common:2366:die
> > [ERROR]
> > /home/lohit22/opensource/openstack/devstack/Org/devstack/functions-common:2366
> > Neutron did not start
> > exit_trap: cleaning up child processes
> > Error on exit
> >
>
> On Sun, May 26, 2024 at 10:44 PM Brian Haley <haleyb.dev@gmail.com> wrote:
>
> > On 5/26/24 12:10 PM, Lohit S wrote:
> > > Again I had tried to execute ./stack.sh cmd, Now I got another problem.
> > > I'm new to OpenStack. Can any pls help to fix the issue.
> >
> > The simplest way to get a devstack up and running is:
> >
> > (assuming you have a cloned devstack repository with no changes)
> >
> > $ cd devstack
> > $ cp samples/local.conf .
> > $ ./stack.sh
> >
> > That should work every time and use all the defaults.
> >
> > If you are making modifications to local.conf then you should undo them
> > one at a time until you find the offending change.
> >
> > -Brian
> >
> > >     +./stack.sh:main:1340                      type -p
> > >     neutron_plugin_create_initial_networks
> > >     +./stack.sh:main:1343
> > >       create_neutron_initial_network
> > >     +lib/neutron_plugins/services/l3:create_neutron_initial_network:157
> > >       type -p neutron_plugin_create_initial_network_profile
> > >     +lib/neutron_plugins/services/l3:create_neutron_initial_network:161
> > >       is_networking_extension_supported auto-allocated-topology
> > >
> >  +lib/neutron_plugins/services/l3:is_networking_extension_supported:433
> >  local extension=auto-allocated-topology
> > >
> >  ++lib/neutron_plugins/services/l3:is_networking_extension_supported:435
> >  oscwrap --os-cloud devstack-admin --os-region RegionOne extension list
> > --network -c Alias -f value
> > >     ++functions-common:oscwrap:2466             return 0
> > >
> >  +lib/neutron_plugins/services/l3:is_networking_extension_supported:435
> >  EXT_LIST='address-group
> > >     address-scope
> > >     agent
> > >     allowed-address-pairs
> > >     availability_zone
> > >     default-subnetpools
> > >     dhcp_agent_scheduler
> > >     external-net
> > >     extra_dhcp_opt
> > >     filter-validation
> > >     flavors
> > >     multi-provider
> > >     net-mtu
> > >     net-mtu-writable
> > >     network_availability_zone
> > >     network-ip-availability
> > >     pagination
> > >     port-device-profile
> > >     port-hardware-offload-type
> > >     port-mac-address-regenerate
> > >     port-numa-affinity-policy
> > >     port-numa-affinity-policy-socket
> > >     binding
> > >     binding-extended
> > >     port-security
> > >     project-id
> > >     provider
> > >     quota-check-limit
> > >     quotas
> > >     quota_details
> > >     rbac-policies
> > >     rbac-address-scope
> > >     rbac-security-groups
> > >     revision-if-match
> > >     standard-attr-revisions
> > >     security-groups-default-rules
> > >     security-groups-normalized-cidr
> > >     security-groups-remote-address-group
> > >     security-groups-rules-belongs-to-default-sg
> > >     security-groups-shared-filtering
> > >     security-group
> > >     service-type
> > >     sorting
> > >     standard-attr-description
> > >     stateful-security-group
> > >     subnet-service-types
> > >     subnet_allocation
> > >     subnetpool-prefix-ops
> > >     standard-attr-tag
> > >     standard-attr-timestamp'
> > >
> >  +lib/neutron_plugins/services/l3:is_networking_extension_supported:436  [[
> > address-group
> > >     address-scope
> > >     agent
> > >     allowed-address-pairs
> > >     availability_zone
> > >     default-subnetpools
> > >     dhcp_agent_scheduler
> > >     external-net
> > >     extra_dhcp_opt
> > >     filter-validation
> > >     flavors
> > >     multi-provider
> > >     net-mtu
> > >     net-mtu-writable
> > >     network_availability_zone
> > >     network-ip-availability
> > >     pagination
> > >     port-device-profile
> > >     port-hardware-offload-type
> > >     port-mac-address-regenerate
> > >     port-numa-affinity-policy
> > >     port-numa-affinity-policy-socket
> > >     binding
> > >     binding-extended
> > >     port-security
> > >     project-id
> > >     provider
> > >     quota-check-limit
> > >     quotas
> > >     quota_details
> > >     rbac-policies
> > >     rbac-address-scope
> > >     rbac-security-groups
> > >     revision-if-match
> > >     standard-attr-revisions
> > >     security-groups-default-rules
> > >     security-groups-normalized-cidr
> > >     security-groups-remote-address-group
> > >     security-groups-rules-belongs-to-default-sg
> > >     security-groups-shared-filtering
> > >     security-group
> > >     service-type
> > >     sorting
> > >     standard-attr-description
> > >     stateful-security-group
> > >     subnet-service-types
> > >     subnet_allocation
> > >     subnetpool-prefix-ops
> > >     standard-attr-tag
> > >     standard-attr-timestamp =~ auto-allocated-topology ]]
> > >     +lib/neutron_plugins/services/l3:create_neutron_initial_network:172
> > >       is_provider_network
> > >     +functions-common:is_provider_network:2270  '[' '' == True ']'
> > >     +functions-common:is_provider_network:2273  return 1
> > >     ++lib/neutron_plugins/services/l3:create_neutron_initial_network:202
> > >       oscwrap --os-cloud devstack --os-region RegionOne network create
> > >     private -f value -c id
> > >     Error while executing command: HttpException: 503, Unable to create
> > >     the network. No tenant network is available for allocation.
> > >     ++functions-common:oscwrap:2466             return 1
> > >     +lib/neutron_plugins/services/l3:create_neutron_initial_network:202
> > >       NET_ID=
> > >     +lib/neutron_plugins/services/l3:create_neutron_initial_network:1
> > >       exit_trap
> > >     +./stack.sh:exit_trap:549                  local r=1
> > >     ++./stack.sh:exit_trap:550                  jobs -p
> > >     +./stack.sh:exit_trap:550                  jobs=269026
> > >     +./stack.sh:exit_trap:553                  [[ -n 269026 ]]
> > >     +./stack.sh:exit_trap:553                  [[ -n
> > >     /opt/stack/logs/stack.sh.log.2024-05-26-200027 ]]
> > >     +./stack.sh:exit_trap:553                  [[ True == \T\r\u\e ]]
> > >     +./stack.sh:exit_trap:554                  echo 'exit_trap: cleaning
> > >     up child processes'
> > >     exit_trap: cleaning up child processes
> > >     +./stack.sh:exit_trap:555                  kill 269026
> > >     +./stack.sh:exit_trap:559                  '[' -f
> > >     /tmp/tmp.gSuYIhEkx5 ']'
> > >     +./stack.sh:exit_trap:560                  rm /tmp/tmp.gSuYIhEkx5
> > >     +./stack.sh:exit_trap:564                  kill_spinner
> > >     +./stack.sh:kill_spinner:459               '[' '!' -z '' ']'
> > >     +./stack.sh:exit_trap:566                  [[ 1 -ne 0 ]]
> > >     +./stack.sh:exit_trap:567                  echo 'Error on exit'
> > >     Error on exit
> > >     +./stack.sh:exit_trap:569                  type -p generate-subunit
> > >     +./stack.sh:exit_trap:570                  generate-subunit
> > >     1716733817 5617 fail
> > >     +./stack.sh:exit_trap:572                  [[ -z /opt/stack/logs ]]
> > >     +./stack.sh:exit_trap:575
> > >       /opt/stack/data/venv/bin/python3
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/tools/worlddump.py
> > -d /opt/stack/logs
> > >     +./stack.sh:exit_trap:584                  exit 1
> > >     lohit22@lohit22
> > >
> > >
> > > On Sun, May 26, 2024 at 11:18 AM Lohit S <s.lohitdv@gmail.com
> > > <mailto:s.lohitdv@gmail.com>> wrote:
> > >
> > >     Hi Team,
> > >          I had tried to execute the ./stack.sh in devstack repo But I
> > >     got the following error, How to fix this issue.
> > >
> > >     +lib/neutron_plugins/ovn_agent:ovn_sanity_check:358  die 358 'The
> > >     q-agt/neutron-agt service must be disabled with OVN.'
> > >     +functions-common:die:285                  local exitcode=0
> > >     +functions-common:die:286                  set +o xtrace
> > >     [Call Trace]
> > >     ./stack.sh:979:stack_install_service
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/stack:32:install_neutron
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/neutron:551:install_ovn
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/neutron_plugins/ovn_agent:373:ovn_sanity_check
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/neutron_plugins/ovn_agent:358:die
> > >     [ERROR]
> > >
> >  /home/lohit22/opensource/openstack/devstack/Org/devstack/lib/neutron_plugins/ovn_agent:358
> > The q-agt/neutron-agt service must be disabled with OVN.
> > >     Error on exit
> > >     World dumping... see /opt/stack/logs/worlddump-2024-05-26-053930.txt
> > >     for details
> > >
> >