2025-08-07 19:58:52,872 - INFO - Domain Default found not creating
2025-08-07 19:58:53,011 - INFO - Project ctest-TestBasicPolicy-33531304 not found, creating it
2025-08-07 19:58:53,451 - INFO - Created Project:ctest-TestBasicPolicy-33531304, ID : 13135498-cfb5-4cdc-a98b-e62c6c8929c3
2025-08-07 19:58:54,963 - INFO - ================================================================================
2025-08-07 19:58:54,963 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 19:58:54,963 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-08-07 19:58:55,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-07 19:58:55,225 - INFO - Initial checks done. Running the testcase now
2025-08-07 19:58:55,226 - INFO -
2025-08-07 19:58:55,818 - DEBUG - Response for create_network : {'network': {'id': '03d42206-35c9-4cd1-8b83-556143ce48d1', 'name': 'ctest-vn-21355890', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'project_id': '13135498cfb54cdca98be62c6c8929c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-vn-21355890'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 19:58:55,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '49f329b2-9e54-422b-bc73-1779fd861317', 'name': '', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'network_id': '03d42206-35c9-4cd1-8b83-556143ce48d1', 'ip_version': 4, 'cidr': '51.116.95.192/26', 'allocation_pools': [{'start': '51.116.95.194', 'end': '51.116.95.254'}], 'gateway_ip': '51.116.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.116.95.194', 'tags': [], 'project_id': '13135498cfb54cdca98be62c6c8929c3'}}
2025-08-07 19:58:56,005 - INFO - Created VN ctest-vn-21355890
2025-08-07 19:58:56,059 - DEBUG - VN ctest-vn-21355890 UUID is 03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:56,382 - DEBUG - Response for create_network : {'network': {'id': '426058b0-a63d-48e2-b674-cfabf389ed7a', 'name': 'ctest-vn-59422482', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'project_id': '13135498cfb54cdca98be62c6c8929c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-vn-59422482'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 19:58:56,606 - DEBUG - Response for create_subnet : {'subnet': {'id': '521d86c8-ac14-4efc-ad95-57ffbfe2a958', 'name': '', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'network_id': '426058b0-a63d-48e2-b674-cfabf389ed7a', 'ip_version': 4, 'cidr': '65.193.30.128/26', 'allocation_pools': [{'start': '65.193.30.130', 'end': '65.193.30.190'}], 'gateway_ip': '65.193.30.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.193.30.130', 'tags': [], 'project_id': '13135498cfb54cdca98be62c6c8929c3'}}
2025-08-07 19:58:56,624 - INFO - Created VN ctest-vn-59422482
2025-08-07 19:58:56,675 - DEBUG - VN ctest-vn-59422482 UUID is 426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:56,827 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-08-07 19:58:57,149 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03d42206-35c9-4cd1-8b83-556143ce48d1', 'name': 'ctest-vn-21355890', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'project_id': '13135498cfb54cdca98be62c6c8929c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49f329b2-9e54-422b-bc73-1779fd861317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-vn-21355890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-policy-allow-all-62465056']], 'subnet_ipam': [{'subnet_cidr': '51.116.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 19:58:57,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '426058b0-a63d-48e2-b674-cfabf389ed7a', 'name': 'ctest-vn-59422482', 'tenant_id': '13135498cfb54cdca98be62c6c8929c3', 'project_id': '13135498cfb54cdca98be62c6c8929c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['521d86c8-ac14-4efc-ad95-57ffbfe2a958'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-vn-59422482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-policy-allow-all-62465056']], 'subnet_ipam': [{'subnet_cidr': '65.193.30.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 19:58:57,540 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 19:58:57,878 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 19:58:57,906 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30f13e49-abae-4263-a3be-edece9f49f35
2025-08-07 19:58:57,920 - DEBUG - Requesting: http://10.0.0.38:8082/project/13135498-cfb5-4cdc-a98b-e62c6c8929c3
2025-08-07 19:58:57,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,007 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29170084-8757-4d31-9a76-10ddaefacd44
2025-08-07 19:58:58,027 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29170084-8757-4d31-9a76-10ddaefacd44
2025-08-07 19:58:58,034 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46e5c423-a559-40a4-913c-64cd741fd67c
2025-08-07 19:58:58,040 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 19:58:58,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29170084-8757-4d31-9a76-10ddaefacd44
2025-08-07 19:58:58,064 - INFO - Verified VN network id 12 for VN 03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,065 - INFO - Verifications in API Server for VN ctest-vn-21355890 passed
2025-08-07 19:58:58,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29170084-8757-4d31-9a76-10ddaefacd44
2025-08-07 19:58:58,081 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29170084-8757-4d31-9a76-10ddaefacd44
2025-08-07 19:58:58,090 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46e5c423-a559-40a4-913c-64cd741fd67c
2025-08-07 19:58:58,102 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33531304', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '275882887243975889', 'uuid-lslong': '10052972669458860241'}, 'enable': 'true', 'created': '2025-08-07T19:58:55', 'last-modified': '2025-08-07T19:58:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977872'}
2025-08-07 19:58:58,109 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 19:58:58,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21355890 passed
2025-08-07 19:58:58,109 - DEBUG - ====Verifying policy data for ctest-vn-21355890 in API_Server ======
2025-08-07 19:58:58,109 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 19:58:58,114 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30f13e49-abae-4263-a3be-edece9f49f35
2025-08-07 19:58:58,125 - DEBUG - Requesting: http://10.0.0.38:8082/project/13135498-cfb5-4cdc-a98b-e62c6c8929c3
2025-08-07 19:58:58,195 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03d42206-35c9-4cd1-8b83-556143ce48d1
2025-08-07 19:58:58,206 - DEBUG - ==>Verifying data for policy with id: 66235c03-ee91-438d-bbb5-c17a2d422390, fqn: ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-policy-allow-all-62465056']
2025-08-07 19:58:58,206 - INFO - VN ctest-vn-21355890 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 19:58:58,206 - DEBUG - Verifying the vn in opserver
2025-08-07 19:58:58,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890 virtual network link through opserver 10.0.0.38
2025-08-07 19:58:58,206 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 19:58:58,538 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 19:58:58,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890?flat'}
2025-08-07 19:58:58,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-21355890 is found in opserver
2025-08-07 19:58:58,605 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 19:58:58,610 - DEBUG - VRF ids for VN ctest-vn-21355890: {}
2025-08-07 19:58:58,610 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 19:58:58,616 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30f13e49-abae-4263-a3be-edece9f49f35
2025-08-07 19:58:58,627 - DEBUG - Requesting: http://10.0.0.38:8082/project/13135498-cfb5-4cdc-a98b-e62c6c8929c3
2025-08-07 19:58:58,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7da263f4-de14-4749-943f-b4a65661287d
2025-08-07 19:58:58,729 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7da263f4-de14-4749-943f-b4a65661287d
2025-08-07 19:58:58,735 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/96f92962-0cb2-4e27-a7b9-efdc3954169c
2025-08-07 19:58:58,742 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 19:58:58,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7da263f4-de14-4749-943f-b4a65661287d
2025-08-07 19:58:58,764 - INFO - Verified VN network id 13 for VN 426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,764 - INFO - Verifications in API Server for VN ctest-vn-59422482 passed
2025-08-07 19:58:58,764 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7da263f4-de14-4749-943f-b4a65661287d
2025-08-07 19:58:58,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7da263f4-de14-4749-943f-b4a65661287d
2025-08-07 19:58:58,787 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/96f92962-0cb2-4e27-a7b9-efdc3954169c
2025-08-07 19:58:58,800 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33531304', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4782920319993989346', 'uuid-lslong': '13147361549633580410'}, 'enable': 'true', 'created': '2025-08-07T19:58:56', 'last-modified': '2025-08-07T19:58:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437972'}
2025-08-07 19:58:58,807 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 19:58:58,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59422482 passed
2025-08-07 19:58:58,807 - DEBUG - ====Verifying policy data for ctest-vn-59422482 in API_Server ======
2025-08-07 19:58:58,807 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-07 19:58:58,812 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30f13e49-abae-4263-a3be-edece9f49f35
2025-08-07 19:58:58,824 - DEBUG - Requesting: http://10.0.0.38:8082/project/13135498-cfb5-4cdc-a98b-e62c6c8929c3
2025-08-07 19:58:58,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/426058b0-a63d-48e2-b674-cfabf389ed7a
2025-08-07 19:58:58,909 - DEBUG - ==>Verifying data for policy with id: 66235c03-ee91-438d-bbb5-c17a2d422390, fqn: ['default-domain', 'ctest-TestBasicPolicy-33531304', 'ctest-policy-allow-all-62465056']
2025-08-07 19:58:58,910 - INFO - VN ctest-vn-59422482 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 19:58:58,910 - DEBUG - Verifying the vn in opserver
2025-08-07 19:58:58,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482 virtual network link through opserver 10.0.0.38
2025-08-07 19:58:58,910 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-07 19:58:58,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482?flat'}
2025-08-07 19:58:58,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33531304:ctest-vn-59422482 is found in opserver
2025-08-07 19:58:58,938 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 19:58:58,943 - DEBUG - VRF ids for VN ctest-vn-59422482: {}
2025-08-07 19:58:59,018 - DEBUG - Services list from nova: [