2025-08-25 12:31:13,134 - INFO - Domain Default found not creating
2025-08-25 12:31:13,276 - INFO - Project ctest-TestBasicPolicy-27979462 not found, creating it
2025-08-25 12:31:13,734 - INFO - Created Project:ctest-TestBasicPolicy-27979462, ID : 98a25f63-49d5-493a-acf5-33c5cdc74e49
2025-08-25 12:31:15,261 - INFO - ================================================================================
2025-08-25 12:31:15,261 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 12:31:15,261 - 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-25 12:31:15,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-08-25 12:31:15,522 - INFO - Initial checks done. Running the testcase now
2025-08-25 12:31:15,522 - INFO -
2025-08-25 12:31:16,088 - DEBUG - Response for create_network : {'network': {'id': 'e465c7b2-4bdf-474f-8a37-0f2c23f400a3', 'name': 'ctest-vn-41244463', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'project_id': '98a25f6349d5493aacf533c5cdc74e49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-vn-41244463'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 12:31:16,262 - DEBUG - Response for create_subnet : {'subnet': {'id': '090ba825-c20d-4dca-b495-1db05167fbc5', 'name': '', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'network_id': 'e465c7b2-4bdf-474f-8a37-0f2c23f400a3', 'ip_version': 4, 'cidr': '114.245.165.128/26', 'allocation_pools': [{'start': '114.245.165.130', 'end': '114.245.165.190'}], 'gateway_ip': '114.245.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.245.165.130', 'tags': [], 'project_id': '98a25f6349d5493aacf533c5cdc74e49'}}
2025-08-25 12:31:16,282 - INFO - Created VN ctest-vn-41244463
2025-08-25 12:31:16,336 - DEBUG - VN ctest-vn-41244463 UUID is e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:16,632 - DEBUG - Response for create_network : {'network': {'id': 'c07dd3ef-d9a3-459d-b84c-9608cb4d2760', 'name': 'ctest-vn-03337168', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'project_id': '98a25f6349d5493aacf533c5cdc74e49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-vn-03337168'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 12:31:16,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '875820c6-dd78-4c72-81d6-dac619d48427', 'name': '', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'network_id': 'c07dd3ef-d9a3-459d-b84c-9608cb4d2760', 'ip_version': 4, 'cidr': '38.137.110.128/26', 'allocation_pools': [{'start': '38.137.110.130', 'end': '38.137.110.190'}], 'gateway_ip': '38.137.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.137.110.130', 'tags': [], 'project_id': '98a25f6349d5493aacf533c5cdc74e49'}}
2025-08-25 12:31:16,869 - INFO - Created VN ctest-vn-03337168
2025-08-25 12:31:16,920 - DEBUG - VN ctest-vn-03337168 UUID is c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:17,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463, 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-27979462:ctest-vn-03337168, 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-25 12:31:17,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e465c7b2-4bdf-474f-8a37-0f2c23f400a3', 'name': 'ctest-vn-41244463', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'project_id': '98a25f6349d5493aacf533c5cdc74e49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['090ba825-c20d-4dca-b495-1db05167fbc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-vn-41244463'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-policy-allow-all-69733528']], 'subnet_ipam': [{'subnet_cidr': '114.245.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 12:31:17,618 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c07dd3ef-d9a3-459d-b84c-9608cb4d2760', 'name': 'ctest-vn-03337168', 'tenant_id': '98a25f6349d5493aacf533c5cdc74e49', 'project_id': '98a25f6349d5493aacf533c5cdc74e49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['875820c6-dd78-4c72-81d6-dac619d48427'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-vn-03337168'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-policy-allow-all-69733528']], 'subnet_ipam': [{'subnet_cidr': '38.137.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 12:31:17,784 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-25 12:31:18,095 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-25 12:31:18,125 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67
2025-08-25 12:31:18,141 - DEBUG - Requesting: http://10.0.0.65:8082/project/98a25f63-49d5-493a-acf5-33c5cdc74e49
2025-08-25 12:31:18,223 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,243 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,253 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a01c75fe-a801-4bd3-bf1c-6177d244c1c2
2025-08-25 12:31:18,261 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a01c75fe-a801-4bd3-bf1c-6177d244c1c2
2025-08-25 12:31:18,268 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c10e1861-7a7e-423a-aff4-1b747222cef0
2025-08-25 12:31:18,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 12:31:18,275 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,285 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a01c75fe-a801-4bd3-bf1c-6177d244c1c2
2025-08-25 12:31:18,298 - INFO - Verified VN network id 12 for VN e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,299 - INFO - Verifications in API Server for VN ctest-vn-41244463 passed
2025-08-25 12:31:18,299 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,309 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a01c75fe-a801-4bd3-bf1c-6177d244c1c2
2025-08-25 12:31:18,317 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a01c75fe-a801-4bd3-bf1c-6177d244c1c2
2025-08-25 12:31:18,324 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c10e1861-7a7e-423a-aff4-1b747222cef0
2025-08-25 12:31:18,336 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27979462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16457779981886375759', 'uuid-lslong': '9959445783209312419'}, 'enable': 'true', 'created': '2025-08-25T12:31:16', 'last-modified': '2025-08-25T12:31:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007822'}
2025-08-25 12:31:18,342 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 12:31:18,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41244463 passed
2025-08-25 12:31:18,343 - DEBUG - ====Verifying policy data for ctest-vn-41244463 in API_Server ======
2025-08-25 12:31:18,343 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-25 12:31:18,348 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67
2025-08-25 12:31:18,360 - DEBUG - Requesting: http://10.0.0.65:8082/project/98a25f63-49d5-493a-acf5-33c5cdc74e49
2025-08-25 12:31:18,434 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e465c7b2-4bdf-474f-8a37-0f2c23f400a3
2025-08-25 12:31:18,445 - DEBUG - ==>Verifying data for policy with id: 8e8f2458-c04e-4d26-ac05-e388780af470, fqn: ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-policy-allow-all-69733528']
2025-08-25 12:31:18,445 - INFO - VN ctest-vn-41244463 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 12:31:18,445 - DEBUG - Verifying the vn in opserver
2025-08-25 12:31:18,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463 virtual network link through opserver 10.0.0.65
2025-08-25 12:31:18,445 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-25 12:31:18,758 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-25 12:31:18,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463?flat'}
2025-08-25 12:31:18,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-41244463 is found in opserver
2025-08-25 12:31:18,830 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 12:31:18,837 - DEBUG - VRF ids for VN ctest-vn-41244463: {}
2025-08-25 12:31:18,837 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-25 12:31:18,844 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67
2025-08-25 12:31:18,858 - DEBUG - Requesting: http://10.0.0.65:8082/project/98a25f63-49d5-493a-acf5-33c5cdc74e49
2025-08-25 12:31:18,934 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:18,947 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:18,957 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/81a39c1f-865f-450a-a2d6-9e6a11eabc8e
2025-08-25 12:31:18,964 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/81a39c1f-865f-450a-a2d6-9e6a11eabc8e
2025-08-25 12:31:18,970 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bdfe6722-e8f7-410f-84e0-4cae92b2b907
2025-08-25 12:31:18,976 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 12:31:18,976 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:18,985 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/81a39c1f-865f-450a-a2d6-9e6a11eabc8e
2025-08-25 12:31:18,998 - INFO - Verified VN network id 13 for VN c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:18,998 - INFO - Verifications in API Server for VN ctest-vn-03337168 passed
2025-08-25 12:31:18,998 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:19,008 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/81a39c1f-865f-450a-a2d6-9e6a11eabc8e
2025-08-25 12:31:19,015 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/81a39c1f-865f-450a-a2d6-9e6a11eabc8e
2025-08-25 12:31:19,021 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/bdfe6722-e8f7-410f-84e0-4cae92b2b907
2025-08-25 12:31:19,034 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-03337168', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27979462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13870475454472996253', 'uuid-lslong': '13280154365723486048'}, 'enable': 'true', 'created': '2025-08-25T12:31:16', 'last-modified': '2025-08-25T12:31:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443215'}
2025-08-25 12:31:19,040 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 12:31:19,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03337168 passed
2025-08-25 12:31:19,040 - DEBUG - ====Verifying policy data for ctest-vn-03337168 in API_Server ======
2025-08-25 12:31:19,041 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-25 12:31:19,046 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67
2025-08-25 12:31:19,058 - DEBUG - Requesting: http://10.0.0.65:8082/project/98a25f63-49d5-493a-acf5-33c5cdc74e49
2025-08-25 12:31:19,140 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/c07dd3ef-d9a3-459d-b84c-9608cb4d2760
2025-08-25 12:31:19,151 - DEBUG - ==>Verifying data for policy with id: 8e8f2458-c04e-4d26-ac05-e388780af470, fqn: ['default-domain', 'ctest-TestBasicPolicy-27979462', 'ctest-policy-allow-all-69733528']
2025-08-25 12:31:19,151 - INFO - VN ctest-vn-03337168 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 12:31:19,151 - DEBUG - Verifying the vn in opserver
2025-08-25 12:31:19,151 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-03337168 virtual network link through opserver 10.0.0.65
2025-08-25 12:31:19,151 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-25 12:31:19,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-03337168', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-03337168?flat'}
2025-08-25 12:31:19,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27979462:ctest-vn-03337168 is found in opserver
2025-08-25 12:31:19,174 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 12:31:19,180 - DEBUG - VRF ids for VN ctest-vn-03337168: {}
2025-08-25 12:31:19,235 - DEBUG - Services list from nova: [