2025-01-07 11:35:03,820 - INFO - Domain Default found not creating
2025-01-07 11:35:04,149 - INFO - Project ctest-TestBasicPolicy-67825363 not found, creating it
2025-01-07 11:35:04,684 - INFO - Created Project:ctest-TestBasicPolicy-67825363, ID : ffff28c2-8857-49f5-b51d-2084e3aea087
2025-01-07 11:35:06,186 - INFO - ================================================================================
2025-01-07 11:35:06,187 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 11:35:06,187 - 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-01-07 11:35:06,445 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.13': '0'}} with
2025-01-07 11:35:06,445 - INFO - Initial checks done. Running the testcase now
2025-01-07 11:35:06,445 - INFO -
2025-01-07 11:35:07,549 - DEBUG - Response for create_network : {'network': {'id': 'f033512b-adf2-4a86-8eb0-233254eaf733', 'name': 'ctest-vn-49628631', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'project_id': 'ffff28c2885749f5b51d2084e3aea087', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-vn-49628631'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:35:07,714 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbdda4fb-7426-46e2-8843-4782fd650fac', 'name': '', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'network_id': 'f033512b-adf2-4a86-8eb0-233254eaf733', 'ip_version': 4, 'cidr': '49.142.192.0/26', 'allocation_pools': [{'start': '49.142.192.2', 'end': '49.142.192.62'}], 'gateway_ip': '49.142.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.142.192.2', 'tags': [], 'project_id': 'ffff28c2885749f5b51d2084e3aea087'}}
2025-01-07 11:35:07,734 - INFO - Created VN ctest-vn-49628631
2025-01-07 11:35:07,787 - DEBUG - VN ctest-vn-49628631 UUID is f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:08,097 - DEBUG - Response for create_network : {'network': {'id': '5d330e7a-6f83-4eb4-87d2-12c97cd0fd82', 'name': 'ctest-vn-16525257', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'project_id': 'ffff28c2885749f5b51d2084e3aea087', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-vn-16525257'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:35:08,265 - DEBUG - Response for create_subnet : {'subnet': {'id': '0239bc29-3bf3-4559-9d29-8354f3045a91', 'name': '', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'network_id': '5d330e7a-6f83-4eb4-87d2-12c97cd0fd82', 'ip_version': 4, 'cidr': '19.187.136.128/26', 'allocation_pools': [{'start': '19.187.136.130', 'end': '19.187.136.190'}], 'gateway_ip': '19.187.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.187.136.130', 'tags': [], 'project_id': 'ffff28c2885749f5b51d2084e3aea087'}}
2025-01-07 11:35:08,285 - INFO - Created VN ctest-vn-16525257
2025-01-07 11:35:08,339 - DEBUG - VN ctest-vn-16525257 UUID is 5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:08,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631, 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-67825363:ctest-vn-16525257, 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-01-07 11:35:08,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f033512b-adf2-4a86-8eb0-233254eaf733', 'name': 'ctest-vn-49628631', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'project_id': 'ffff28c2885749f5b51d2084e3aea087', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fbdda4fb-7426-46e2-8843-4782fd650fac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-vn-49628631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-policy-allow-all-52210659']], 'subnet_ipam': [{'subnet_cidr': '49.142.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:35:09,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d330e7a-6f83-4eb4-87d2-12c97cd0fd82', 'name': 'ctest-vn-16525257', 'tenant_id': 'ffff28c2885749f5b51d2084e3aea087', 'project_id': 'ffff28c2885749f5b51d2084e3aea087', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0239bc29-3bf3-4559-9d29-8354f3045a91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-vn-16525257'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-policy-allow-all-52210659']], 'subnet_ipam': [{'subnet_cidr': '19.187.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:35:09,187 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-07 11:35:09,490 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-07 11:35:09,520 - DEBUG - Requesting: http://10.0.0.30:8082/domain/4671ebec-1d52-4f45-b216-f4d1a080e8b9
2025-01-07 11:35:09,537 - DEBUG - Requesting: http://10.0.0.30:8082/project/ffff28c2-8857-49f5-b51d-2084e3aea087
2025-01-07 11:35:09,615 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,627 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,638 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/86809d4a-0f92-4441-adb2-14d2a8af7c36
2025-01-07 11:35:09,647 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/86809d4a-0f92-4441-adb2-14d2a8af7c36
2025-01-07 11:35:09,655 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/9a12c237-1f64-4489-9882-994ad59864a7
2025-01-07 11:35:09,664 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:35:09,664 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,674 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/86809d4a-0f92-4441-adb2-14d2a8af7c36
2025-01-07 11:35:09,693 - INFO - Verified VN network id 8 for VN f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,693 - INFO - Verifications in API Server for VN ctest-vn-49628631 passed
2025-01-07 11:35:09,693 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,707 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/86809d4a-0f92-4441-adb2-14d2a8af7c36
2025-01-07 11:35:09,724 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/86809d4a-0f92-4441-adb2-14d2a8af7c36
2025-01-07 11:35:09,733 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/9a12c237-1f64-4489-9882-994ad59864a7
2025-01-07 11:35:09,747 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67825363', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17308267040958728838', 'uuid-lslong': '10281756648366864179'}, 'enable': 'true', 'created': '2025-01-07T11:35:07', 'last-modified': '2025-01-07T11:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996415'}
2025-01-07 11:35:09,755 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:35:09,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49628631 passed
2025-01-07 11:35:09,756 - DEBUG - ====Verifying policy data for ctest-vn-49628631 in API_Server ======
2025-01-07 11:35:09,756 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-07 11:35:09,763 - DEBUG - Requesting: http://10.0.0.30:8082/domain/4671ebec-1d52-4f45-b216-f4d1a080e8b9
2025-01-07 11:35:09,777 - DEBUG - Requesting: http://10.0.0.30:8082/project/ffff28c2-8857-49f5-b51d-2084e3aea087
2025-01-07 11:35:09,852 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/f033512b-adf2-4a86-8eb0-233254eaf733
2025-01-07 11:35:09,864 - DEBUG - ==>Verifying data for policy with id: 7e9da970-2d16-4b33-94c6-3d36c78ec315, fqn: ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-policy-allow-all-52210659']
2025-01-07 11:35:09,864 - INFO - VN ctest-vn-49628631 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:35:09,864 - DEBUG - Verifying the vn in opserver
2025-01-07 11:35:09,864 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631 virtual network link through opserver 10.0.0.30
2025-01-07 11:35:09,865 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-07 11:35:10,164 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-07 11:35:10,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631?flat'}
2025-01-07 11:35:10,226 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-49628631 is found in opserver
2025-01-07 11:35:10,239 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:35:10,247 - DEBUG - VRF ids for VN ctest-vn-49628631: {}
2025-01-07 11:35:10,247 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-07 11:35:10,255 - DEBUG - Requesting: http://10.0.0.30:8082/domain/4671ebec-1d52-4f45-b216-f4d1a080e8b9
2025-01-07 11:35:10,269 - DEBUG - Requesting: http://10.0.0.30:8082/project/ffff28c2-8857-49f5-b51d-2084e3aea087
2025-01-07 11:35:10,349 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,362 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,374 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a1368a7a-fd5d-48d6-a12e-81a5a0f9b43e
2025-01-07 11:35:10,382 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a1368a7a-fd5d-48d6-a12e-81a5a0f9b43e
2025-01-07 11:35:10,391 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/4f143303-909f-4f1c-87d0-253d07733635
2025-01-07 11:35:10,399 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:35:10,399 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,415 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a1368a7a-fd5d-48d6-a12e-81a5a0f9b43e
2025-01-07 11:35:10,434 - INFO - Verified VN network id 9 for VN 5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,434 - INFO - Verifications in API Server for VN ctest-vn-16525257 passed
2025-01-07 11:35:10,435 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,446 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a1368a7a-fd5d-48d6-a12e-81a5a0f9b43e
2025-01-07 11:35:10,456 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a1368a7a-fd5d-48d6-a12e-81a5a0f9b43e
2025-01-07 11:35:10,465 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/4f143303-909f-4f1c-87d0-253d07733635
2025-01-07 11:35:10,479 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-16525257', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67825363', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6715727388359216820', 'uuid-lslong': '9786905596821306754'}, 'enable': 'true', 'created': '2025-01-07T11:35:08', 'last-modified': '2025-01-07T11:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470569'}
2025-01-07 11:35:10,486 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:35:10,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16525257 passed
2025-01-07 11:35:10,487 - DEBUG - ====Verifying policy data for ctest-vn-16525257 in API_Server ======
2025-01-07 11:35:10,487 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-07 11:35:10,493 - DEBUG - Requesting: http://10.0.0.30:8082/domain/4671ebec-1d52-4f45-b216-f4d1a080e8b9
2025-01-07 11:35:10,506 - DEBUG - Requesting: http://10.0.0.30:8082/project/ffff28c2-8857-49f5-b51d-2084e3aea087
2025-01-07 11:35:10,587 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/5d330e7a-6f83-4eb4-87d2-12c97cd0fd82
2025-01-07 11:35:10,598 - DEBUG - ==>Verifying data for policy with id: 7e9da970-2d16-4b33-94c6-3d36c78ec315, fqn: ['default-domain', 'ctest-TestBasicPolicy-67825363', 'ctest-policy-allow-all-52210659']
2025-01-07 11:35:10,598 - INFO - VN ctest-vn-16525257 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:35:10,598 - DEBUG - Verifying the vn in opserver
2025-01-07 11:35:10,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-16525257 virtual network link through opserver 10.0.0.30
2025-01-07 11:35:10,598 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-07 11:35:10,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-16525257', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-16525257?flat'}
2025-01-07 11:35:10,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67825363:ctest-vn-16525257 is found in opserver
2025-01-07 11:35:10,622 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:35:10,629 - DEBUG - VRF ids for VN ctest-vn-16525257: {}
2025-01-07 11:35:10,691 - DEBUG - Services list from nova: [