2025-03-28 08:07:10,861 - INFO - Domain Default found not creating
2025-03-28 08:07:11,014 - INFO - Project ctest-TestBasicPolicy-23723263 not found, creating it
2025-03-28 08:07:11,471 - INFO - Created Project:ctest-TestBasicPolicy-23723263, ID : 80efd665-679e-42ec-9b90-9d306f8ed950
2025-03-28 08:07:13,039 - INFO - ================================================================================
2025-03-28 08:07:13,040 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 08:07:13,040 - 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-03-28 08:07:13,308 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.5': '0'}} with
2025-03-28 08:07:13,308 - INFO - Initial checks done. Running the testcase now
2025-03-28 08:07:13,309 - INFO -
2025-03-28 08:07:13,821 - DEBUG - Response for create_network : {'network': {'id': 'c20942b1-e542-47c8-9ac0-87c283fed364', 'name': 'ctest-vn-75816308', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'project_id': '80efd665679e42ec9b909d306f8ed950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-vn-75816308'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 08:07:13,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '783db11e-bff9-44e2-b55b-ea58acce77d9', 'name': '', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'network_id': 'c20942b1-e542-47c8-9ac0-87c283fed364', 'ip_version': 4, 'cidr': '202.250.29.128/26', 'allocation_pools': [{'start': '202.250.29.130', 'end': '202.250.29.190'}], 'gateway_ip': '202.250.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.250.29.130', 'tags': [], 'project_id': '80efd665679e42ec9b909d306f8ed950'}}
2025-03-28 08:07:14,000 - INFO - Created VN ctest-vn-75816308
2025-03-28 08:07:14,054 - DEBUG - VN ctest-vn-75816308 UUID is c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:14,355 - DEBUG - Response for create_network : {'network': {'id': '1da598f5-0bd2-4958-a208-c0babfd75a19', 'name': 'ctest-vn-43924098', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'project_id': '80efd665679e42ec9b909d306f8ed950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-vn-43924098'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 08:07:14,561 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8cafe59-efad-4398-973c-0d940ca7cc34', 'name': '', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'network_id': '1da598f5-0bd2-4958-a208-c0babfd75a19', 'ip_version': 4, 'cidr': '168.135.184.64/26', 'allocation_pools': [{'start': '168.135.184.66', 'end': '168.135.184.126'}], 'gateway_ip': '168.135.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.135.184.66', 'tags': [], 'project_id': '80efd665679e42ec9b909d306f8ed950'}}
2025-03-28 08:07:14,580 - INFO - Created VN ctest-vn-43924098
2025-03-28 08:07:14,630 - DEBUG - VN ctest-vn-43924098 UUID is 1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:14,753 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308, 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-23723263:ctest-vn-43924098, 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-03-28 08:07:15,072 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c20942b1-e542-47c8-9ac0-87c283fed364', 'name': 'ctest-vn-75816308', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'project_id': '80efd665679e42ec9b909d306f8ed950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['783db11e-bff9-44e2-b55b-ea58acce77d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-vn-75816308'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-policy-allow-all-50820274']], 'subnet_ipam': [{'subnet_cidr': '202.250.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 08:07:15,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1da598f5-0bd2-4958-a208-c0babfd75a19', 'name': 'ctest-vn-43924098', 'tenant_id': '80efd665679e42ec9b909d306f8ed950', 'project_id': '80efd665679e42ec9b909d306f8ed950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8cafe59-efad-4398-973c-0d940ca7cc34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-vn-43924098'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-policy-allow-all-50820274']], 'subnet_ipam': [{'subnet_cidr': '168.135.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 08:07:15,482 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-03-28 08:07:15,772 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-03-28 08:07:15,800 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1a6069e3-42ca-460b-8139-89b189786836
2025-03-28 08:07:15,813 - DEBUG - Requesting: http://10.0.0.41:8082/project/80efd665-679e-42ec-9b90-9d306f8ed950
2025-03-28 08:07:15,890 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:15,901 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:15,911 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7bc4ac74-b7f2-41a6-90d0-a8f037ce3856
2025-03-28 08:07:15,918 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7bc4ac74-b7f2-41a6-90d0-a8f037ce3856
2025-03-28 08:07:15,925 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/4c431859-b997-41b4-b570-12e48ea55857
2025-03-28 08:07:15,932 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 08:07:15,932 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:15,942 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7bc4ac74-b7f2-41a6-90d0-a8f037ce3856
2025-03-28 08:07:15,956 - INFO - Verified VN network id 9 for VN c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:15,956 - INFO - Verifications in API Server for VN ctest-vn-75816308 passed
2025-03-28 08:07:15,956 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:15,966 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7bc4ac74-b7f2-41a6-90d0-a8f037ce3856
2025-03-28 08:07:15,973 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7bc4ac74-b7f2-41a6-90d0-a8f037ce3856
2025-03-28 08:07:15,981 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/4c431859-b997-41b4-b570-12e48ea55857
2025-03-28 08:07:15,993 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23723263', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13981779849971386312', 'uuid-lslong': '11151061946877268836'}, 'enable': 'true', 'created': '2025-03-28T08:07:13', 'last-modified': '2025-03-28T08:07:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949079'}
2025-03-28 08:07:16,000 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 08:07:16,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75816308 passed
2025-03-28 08:07:16,000 - DEBUG - ====Verifying policy data for ctest-vn-75816308 in API_Server ======
2025-03-28 08:07:16,001 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-03-28 08:07:16,006 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1a6069e3-42ca-460b-8139-89b189786836
2025-03-28 08:07:16,017 - DEBUG - Requesting: http://10.0.0.41:8082/project/80efd665-679e-42ec-9b90-9d306f8ed950
2025-03-28 08:07:16,095 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c20942b1-e542-47c8-9ac0-87c283fed364
2025-03-28 08:07:16,105 - DEBUG - ==>Verifying data for policy with id: 88fc79e4-fedb-49bd-99fb-633bfd2de4a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-policy-allow-all-50820274']
2025-03-28 08:07:16,105 - INFO - VN ctest-vn-75816308 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 08:07:16,105 - DEBUG - Verifying the vn in opserver
2025-03-28 08:07:16,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308 virtual network link through opserver 10.0.0.41
2025-03-28 08:07:16,106 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-03-28 08:07:16,402 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-03-28 08:07:16,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308?flat'}
2025-03-28 08:07:16,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-75816308 is found in opserver
2025-03-28 08:07:16,470 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 08:07:16,476 - DEBUG - VRF ids for VN ctest-vn-75816308: {}
2025-03-28 08:07:16,476 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-03-28 08:07:16,482 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1a6069e3-42ca-460b-8139-89b189786836
2025-03-28 08:07:16,495 - DEBUG - Requesting: http://10.0.0.41:8082/project/80efd665-679e-42ec-9b90-9d306f8ed950
2025-03-28 08:07:16,575 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,588 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,599 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/56965ed5-9750-4439-8df6-a3d28e766ca2
2025-03-28 08:07:16,608 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/56965ed5-9750-4439-8df6-a3d28e766ca2
2025-03-28 08:07:16,616 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/33b7709a-8c01-45ba-a3b6-97d6906d0167
2025-03-28 08:07:16,624 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 08:07:16,624 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,635 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/56965ed5-9750-4439-8df6-a3d28e766ca2
2025-03-28 08:07:16,653 - INFO - Verified VN network id 10 for VN 1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,653 - INFO - Verifications in API Server for VN ctest-vn-43924098 passed
2025-03-28 08:07:16,653 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,667 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/56965ed5-9750-4439-8df6-a3d28e766ca2
2025-03-28 08:07:16,677 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/56965ed5-9750-4439-8df6-a3d28e766ca2
2025-03-28 08:07:16,686 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/33b7709a-8c01-45ba-a3b6-97d6906d0167
2025-03-28 08:07:16,701 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-43924098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23723263', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2136281776489908568', 'uuid-lslong': '11675793942273022489'}, 'enable': 'true', 'created': '2025-03-28T08:07:14', 'last-modified': '2025-03-28T08:07:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417309'}
2025-03-28 08:07:16,708 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 08:07:16,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43924098 passed
2025-03-28 08:07:16,709 - DEBUG - ====Verifying policy data for ctest-vn-43924098 in API_Server ======
2025-03-28 08:07:16,709 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-03-28 08:07:16,715 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1a6069e3-42ca-460b-8139-89b189786836
2025-03-28 08:07:16,729 - DEBUG - Requesting: http://10.0.0.41:8082/project/80efd665-679e-42ec-9b90-9d306f8ed950
2025-03-28 08:07:16,804 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1da598f5-0bd2-4958-a208-c0babfd75a19
2025-03-28 08:07:16,814 - DEBUG - ==>Verifying data for policy with id: 88fc79e4-fedb-49bd-99fb-633bfd2de4a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-23723263', 'ctest-policy-allow-all-50820274']
2025-03-28 08:07:16,814 - INFO - VN ctest-vn-43924098 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 08:07:16,814 - DEBUG - Verifying the vn in opserver
2025-03-28 08:07:16,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-43924098 virtual network link through opserver 10.0.0.41
2025-03-28 08:07:16,815 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-03-28 08:07:16,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-43924098', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-43924098?flat'}
2025-03-28 08:07:16,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23723263:ctest-vn-43924098 is found in opserver
2025-03-28 08:07:16,840 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 08:07:16,845 - DEBUG - VRF ids for VN ctest-vn-43924098: {}
2025-03-28 08:07:16,901 - DEBUG - Services list from nova: [