2025-04-21 08:15:52,289 - INFO - Domain Default found not creating
2025-04-21 08:15:52,430 - INFO - Project ctest-TestBasicPolicy-38767311 not found, creating it
2025-04-21 08:15:52,903 - INFO - Created Project:ctest-TestBasicPolicy-38767311, ID : ebcf018e-b70e-499e-b206-21dbd75a5e30
2025-04-21 08:15:54,482 - INFO - ================================================================================
2025-04-21 08:15:54,482 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 08:15:54,483 - 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-04-21 08:15:54,739 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-21 08:15:54,739 - INFO - Initial checks done. Running the testcase now
2025-04-21 08:15:54,739 - INFO -
2025-04-21 08:15:55,384 - DEBUG - Response for create_network : {'network': {'id': 'ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c', 'name': 'ctest-vn-73646627', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-vn-73646627'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 08:15:55,563 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc267c77-ec4d-479d-a190-2dfd8dc362a3', 'name': '', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'network_id': 'ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c', 'ip_version': 4, 'cidr': '80.176.96.0/26', 'allocation_pools': [{'start': '80.176.96.2', 'end': '80.176.96.62'}], 'gateway_ip': '80.176.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.176.96.2', 'tags': [], 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30'}}
2025-04-21 08:15:55,583 - INFO - Created VN ctest-vn-73646627
2025-04-21 08:15:55,641 - DEBUG - VN ctest-vn-73646627 UUID is ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:55,943 - DEBUG - Response for create_network : {'network': {'id': 'b53092bc-23f6-445a-bd08-9824f12ad316', 'name': 'ctest-vn-34612833', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-vn-34612833'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 08:15:56,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '12703f60-0acc-45cf-839a-ab9c95f5edc7', 'name': '', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'network_id': 'b53092bc-23f6-445a-bd08-9824f12ad316', 'ip_version': 4, 'cidr': '32.14.227.128/26', 'allocation_pools': [{'start': '32.14.227.130', 'end': '32.14.227.190'}], 'gateway_ip': '32.14.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.14.227.130', 'tags': [], 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30'}}
2025-04-21 08:15:56,351 - INFO - Created VN ctest-vn-34612833
2025-04-21 08:15:56,404 - DEBUG - VN ctest-vn-34612833 UUID is b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:56,560 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627, 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-38767311:ctest-vn-34612833, 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-04-21 08:15:56,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c', 'name': 'ctest-vn-73646627', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc267c77-ec4d-479d-a190-2dfd8dc362a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-vn-73646627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-policy-allow-all-68039091']], 'subnet_ipam': [{'subnet_cidr': '80.176.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 08:15:57,092 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b53092bc-23f6-445a-bd08-9824f12ad316', 'name': 'ctest-vn-34612833', 'tenant_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'project_id': 'ebcf018eb70e499eb20621dbd75a5e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12703f60-0acc-45cf-839a-ab9c95f5edc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-vn-34612833'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-policy-allow-all-68039091']], 'subnet_ipam': [{'subnet_cidr': '32.14.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 08:15:57,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-21 08:15:57,591 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-21 08:15:57,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/de4b6d8e-32dc-4ffe-af7b-ee363ba02ef8
2025-04-21 08:15:57,636 - DEBUG - Requesting: http://10.0.0.50:8082/project/ebcf018e-b70e-499e-b206-21dbd75a5e30
2025-04-21 08:15:57,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,736 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8516cbe0-a03b-4b07-9233-50abcfee5b4b
2025-04-21 08:15:57,744 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8516cbe0-a03b-4b07-9233-50abcfee5b4b
2025-04-21 08:15:57,753 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6a195989-337e-4905-9645-eca94cf0286d
2025-04-21 08:15:57,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 08:15:57,760 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,770 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8516cbe0-a03b-4b07-9233-50abcfee5b4b
2025-04-21 08:15:57,786 - INFO - Verified VN network id 8 for VN ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,786 - INFO - Verifications in API Server for VN ctest-vn-73646627 passed
2025-04-21 08:15:57,786 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8516cbe0-a03b-4b07-9233-50abcfee5b4b
2025-04-21 08:15:57,805 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8516cbe0-a03b-4b07-9233-50abcfee5b4b
2025-04-21 08:15:57,813 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6a195989-337e-4905-9645-eca94cf0286d
2025-04-21 08:15:57,827 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38767311', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13429958590724001529', 'uuid-lslong': '11957717928453644188'}, 'enable': 'true', 'created': '2025-04-21T08:15:55', 'last-modified': '2025-04-21T08:15:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987738'}
2025-04-21 08:15:57,834 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 08:15:57,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73646627 passed
2025-04-21 08:15:57,834 - DEBUG - ====Verifying policy data for ctest-vn-73646627 in API_Server ======
2025-04-21 08:15:57,834 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-21 08:15:57,840 - DEBUG - Requesting: http://10.0.0.50:8082/domain/de4b6d8e-32dc-4ffe-af7b-ee363ba02ef8
2025-04-21 08:15:57,854 - DEBUG - Requesting: http://10.0.0.50:8082/project/ebcf018e-b70e-499e-b206-21dbd75a5e30
2025-04-21 08:15:57,931 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba60cc2e-ec4f-4ef9-a5f2-5919e9cc9f9c
2025-04-21 08:15:57,942 - DEBUG - ==>Verifying data for policy with id: fd5c8077-1f3e-4ad6-81df-bfa65b979781, fqn: ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-policy-allow-all-68039091']
2025-04-21 08:15:57,942 - INFO - VN ctest-vn-73646627 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 08:15:57,942 - DEBUG - Verifying the vn in opserver
2025-04-21 08:15:57,942 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627 virtual network link through opserver 10.0.0.50
2025-04-21 08:15:57,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-21 08:15:58,273 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-21 08:15:58,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627?flat'}
2025-04-21 08:15:58,329 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-73646627 is found in opserver
2025-04-21 08:15:58,340 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 08:15:58,346 - DEBUG - VRF ids for VN ctest-vn-73646627: {}
2025-04-21 08:15:58,346 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-21 08:15:58,351 - DEBUG - Requesting: http://10.0.0.50:8082/domain/de4b6d8e-32dc-4ffe-af7b-ee363ba02ef8
2025-04-21 08:15:58,363 - DEBUG - Requesting: http://10.0.0.50:8082/project/ebcf018e-b70e-499e-b206-21dbd75a5e30
2025-04-21 08:15:58,434 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,459 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b91e093-1941-45ac-8c9d-2b9e0826c138
2025-04-21 08:15:58,467 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b91e093-1941-45ac-8c9d-2b9e0826c138
2025-04-21 08:15:58,474 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cf5bd05-5179-4782-bd46-b4f9b670c2bf
2025-04-21 08:15:58,481 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 08:15:58,481 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,492 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b91e093-1941-45ac-8c9d-2b9e0826c138
2025-04-21 08:15:58,507 - INFO - Verified VN network id 9 for VN b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,507 - INFO - Verifications in API Server for VN ctest-vn-34612833 passed
2025-04-21 08:15:58,507 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,517 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b91e093-1941-45ac-8c9d-2b9e0826c138
2025-04-21 08:15:58,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b91e093-1941-45ac-8c9d-2b9e0826c138
2025-04-21 08:15:58,533 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cf5bd05-5179-4782-bd46-b4f9b670c2bf
2025-04-21 08:15:58,547 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-34612833', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38767311', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13056096656501916762', 'uuid-lslong': '13621304357414425366'}, 'enable': 'true', 'created': '2025-04-21T08:15:55', 'last-modified': '2025-04-21T08:15:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479266'}
2025-04-21 08:15:58,555 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 08:15:58,555 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34612833 passed
2025-04-21 08:15:58,555 - DEBUG - ====Verifying policy data for ctest-vn-34612833 in API_Server ======
2025-04-21 08:15:58,555 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-21 08:15:58,561 - DEBUG - Requesting: http://10.0.0.50:8082/domain/de4b6d8e-32dc-4ffe-af7b-ee363ba02ef8
2025-04-21 08:15:58,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/ebcf018e-b70e-499e-b206-21dbd75a5e30
2025-04-21 08:15:58,646 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b53092bc-23f6-445a-bd08-9824f12ad316
2025-04-21 08:15:58,658 - DEBUG - ==>Verifying data for policy with id: fd5c8077-1f3e-4ad6-81df-bfa65b979781, fqn: ['default-domain', 'ctest-TestBasicPolicy-38767311', 'ctest-policy-allow-all-68039091']
2025-04-21 08:15:58,658 - INFO - VN ctest-vn-34612833 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 08:15:58,658 - DEBUG - Verifying the vn in opserver
2025-04-21 08:15:58,658 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-34612833 virtual network link through opserver 10.0.0.50
2025-04-21 08:15:58,658 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-21 08:15:58,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-34612833', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-34612833?flat'}
2025-04-21 08:15:58,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38767311:ctest-vn-34612833 is found in opserver
2025-04-21 08:15:58,682 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 08:15:58,688 - DEBUG - VRF ids for VN ctest-vn-34612833: {}
2025-04-21 08:15:58,746 - DEBUG - Services list from nova: [