2025-07-07 20:56:52,375 - INFO - Domain Default found not creating
2025-07-07 20:56:52,773 - INFO - Project ctest-TestBasicPolicy-11626485 not found, creating it
2025-07-07 20:56:53,520 - INFO - Created Project:ctest-TestBasicPolicy-11626485, ID : 4806faea-4dd2-4693-b226-2b84fac8b9e4
2025-07-07 20:56:56,042 - INFO - ================================================================================
2025-07-07 20:56:56,043 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 20:56:56,043 - 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-07-07 20:56:56,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-07 20:56:56,384 - INFO - Initial checks done. Running the testcase now
2025-07-07 20:56:56,384 - INFO -
2025-07-07 20:56:57,256 - DEBUG - Response for create_network : {'network': {'id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'name': 'ctest-vn-76224747', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-76224747'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 20:56:57,478 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fb4b02c-7e57-4a37-8111-956483792170', 'name': '', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'network_id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'ip_version': 4, 'cidr': '79.77.200.192/26', 'allocation_pools': [{'start': '79.77.200.194', 'end': '79.77.200.254'}], 'gateway_ip': '79.77.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.77.200.194', 'tags': [], 'project_id': '4806faea4dd24693b2262b84fac8b9e4'}}
2025-07-07 20:56:57,504 - INFO - Created VN ctest-vn-76224747
2025-07-07 20:56:57,566 - DEBUG - VN ctest-vn-76224747 UUID is 077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:56:58,064 - DEBUG - Response for create_network : {'network': {'id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'name': 'ctest-vn-66046673', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-66046673'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 20:56:58,338 - DEBUG - Response for create_subnet : {'subnet': {'id': '925033c2-dd7b-46cd-8b90-55f183069802', 'name': '', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'network_id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'ip_version': 4, 'cidr': '112.185.6.192/26', 'allocation_pools': [{'start': '112.185.6.194', 'end': '112.185.6.254'}], 'gateway_ip': '112.185.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.185.6.194', 'tags': [], 'project_id': '4806faea4dd24693b2262b84fac8b9e4'}}
2025-07-07 20:56:58,375 - INFO - Created VN ctest-vn-66046673
2025-07-07 20:56:58,438 - DEBUG - VN ctest-vn-66046673 UUID is a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:56:58,597 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747, 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-11626485:ctest-vn-66046673, 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-07-07 20:56:59,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'name': 'ctest-vn-76224747', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fb4b02c-7e57-4a37-8111-956483792170'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-76224747'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']], 'subnet_ipam': [{'subnet_cidr': '79.77.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 20:56:59,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'name': 'ctest-vn-66046673', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['925033c2-dd7b-46cd-8b90-55f183069802'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-66046673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']], 'subnet_ipam': [{'subnet_cidr': '112.185.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 20:56:59,582 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 20:56:59,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 20:57:00,005 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532
2025-07-07 20:57:00,034 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4
2025-07-07 20:57:00,157 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,189 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c
2025-07-07 20:57:00,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c
2025-07-07 20:57:00,210 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c5034b1-a029-45cd-8cf2-7127192bdced
2025-07-07 20:57:00,218 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 20:57:00,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c
2025-07-07 20:57:00,252 - INFO - Verified VN network id 8 for VN 077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,252 - INFO - Verifications in API Server for VN ctest-vn-76224747 passed
2025-07-07 20:57:00,252 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,267 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c
2025-07-07 20:57:00,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c
2025-07-07 20:57:00,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c5034b1-a029-45cd-8cf2-7127192bdced
2025-07-07 20:57:00,301 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11626485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '539166147459302163', 'uuid-lslong': '9421220328610652091'}, 'enable': 'true', 'created': '2025-07-07T20:56:57', 'last-modified': '2025-07-07T20:56:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.303684'}
2025-07-07 20:57:00,308 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 20:57:00,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76224747 passed
2025-07-07 20:57:00,309 - DEBUG - ====Verifying policy data for ctest-vn-76224747 in API_Server ======
2025-07-07 20:57:00,309 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 20:57:00,317 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532
2025-07-07 20:57:00,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4
2025-07-07 20:57:00,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb
2025-07-07 20:57:00,444 - DEBUG - ==>Verifying data for policy with id: 0f46cecf-6e2b-4e4a-99f5-2f97899f3693, fqn: ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']
2025-07-07 20:57:00,444 - INFO - VN ctest-vn-76224747 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 20:57:00,445 - DEBUG - Verifying the vn in opserver
2025-07-07 20:57:00,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747 virtual network link through opserver 10.0.0.50
2025-07-07 20:57:00,445 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 20:57:00,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 20:57:00,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747?flat'}
2025-07-07 20:57:00,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747 is found in opserver
2025-07-07 20:57:00,819 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 20:57:00,830 - DEBUG - VRF ids for VN ctest-vn-76224747: {}
2025-07-07 20:57:00,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 20:57:00,838 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532
2025-07-07 20:57:00,856 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4
2025-07-07 20:57:00,955 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:00,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:00,986 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744
2025-07-07 20:57:00,995 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744
2025-07-07 20:57:01,007 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/966ecd3e-e973-4bd5-bf96-8dff9ea8d3da
2025-07-07 20:57:01,017 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 20:57:01,017 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:01,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744
2025-07-07 20:57:01,053 - INFO - Verified VN network id 9 for VN a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:01,053 - INFO - Verifications in API Server for VN ctest-vn-66046673 passed
2025-07-07 20:57:01,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:01,068 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744
2025-07-07 20:57:01,085 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744
2025-07-07 20:57:01,103 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/966ecd3e-e973-4bd5-bf96-8dff9ea8d3da
2025-07-07 20:57:01,121 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11626485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11531630665947695145', 'uuid-lslong': '13327431027458965130'}, 'enable': 'true', 'created': '2025-07-07T20:56:58', 'last-modified': '2025-07-07T20:56:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.753353'}
2025-07-07 20:57:01,128 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 20:57:01,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66046673 passed
2025-07-07 20:57:01,128 - DEBUG - ====Verifying policy data for ctest-vn-66046673 in API_Server ======
2025-07-07 20:57:01,128 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 20:57:01,134 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532
2025-07-07 20:57:01,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4
2025-07-07 20:57:01,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a
2025-07-07 20:57:01,243 - DEBUG - ==>Verifying data for policy with id: 0f46cecf-6e2b-4e4a-99f5-2f97899f3693, fqn: ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']
2025-07-07 20:57:01,243 - INFO - VN ctest-vn-66046673 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 20:57:01,243 - DEBUG - Verifying the vn in opserver
2025-07-07 20:57:01,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673 virtual network link through opserver 10.0.0.50
2025-07-07 20:57:01,243 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 20:57:01,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673?flat'}
2025-07-07 20:57:01,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673 is found in opserver
2025-07-07 20:57:01,264 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 20:57:01,269 - DEBUG - VRF ids for VN ctest-vn-66046673: {}
2025-07-07 20:57:01,330 - DEBUG - Services list from nova: [