2025-04-22 13:40:08,103 - INFO - Domain Default found not creating
2025-04-22 13:40:08,224 - INFO - Project ctest-TestBasicPolicy-10591134 not found, creating it
2025-04-22 13:40:08,676 - INFO - Created Project:ctest-TestBasicPolicy-10591134, ID : 32b5bbcf-d30a-4fe7-9b4d-cbf96f10504c
2025-04-22 13:40:10,082 - INFO - ================================================================================
2025-04-22 13:40:10,082 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 13:40:10,083 - 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-22 13:40:10,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-04-22 13:40:10,341 - INFO - Initial checks done. Running the testcase now
2025-04-22 13:40:10,341 - INFO -
2025-04-22 13:40:10,845 - DEBUG - Response for create_network : {'network': {'id': '55f883e6-6e21-4cb3-8946-b24174ce63b5', 'name': 'ctest-vn-91837952', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-vn-91837952'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:11,146 - DEBUG - Response for create_subnet : {'subnet': {'id': '4eb5a53c-6481-4d65-9980-652399ae17bd', 'name': '', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'network_id': '55f883e6-6e21-4cb3-8946-b24174ce63b5', 'ip_version': 4, 'cidr': '71.175.163.64/26', 'allocation_pools': [{'start': '71.175.163.66', 'end': '71.175.163.126'}], 'gateway_ip': '71.175.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.175.163.66', 'tags': [], 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c'}}
2025-04-22 13:40:11,162 - INFO - Created VN ctest-vn-91837952
2025-04-22 13:40:11,212 - DEBUG - VN ctest-vn-91837952 UUID is 55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:11,504 - DEBUG - Response for create_network : {'network': {'id': '8d90d70a-3bf1-496d-aaa3-6196f8f1713c', 'name': 'ctest-vn-76508258', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-vn-76508258'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:11,669 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de54b417-4841-49b0-90b1-f1f90fd41360', 'name': '', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'network_id': '8d90d70a-3bf1-496d-aaa3-6196f8f1713c', 'ip_version': 4, 'cidr': '43.166.126.0/26', 'allocation_pools': [{'start': '43.166.126.2', 'end': '43.166.126.62'}], 'gateway_ip': '43.166.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.166.126.2', 'tags': [], 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c'}}
2025-04-22 13:40:11,684 - INFO - Created VN ctest-vn-76508258
2025-04-22 13:40:11,736 - DEBUG - VN ctest-vn-76508258 UUID is 8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:11,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952, 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-10591134:ctest-vn-76508258, 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-22 13:40:12,147 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55f883e6-6e21-4cb3-8946-b24174ce63b5', 'name': 'ctest-vn-91837952', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4eb5a53c-6481-4d65-9980-652399ae17bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-vn-91837952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-policy-allow-all-67337842']], 'subnet_ipam': [{'subnet_cidr': '71.175.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:12,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d90d70a-3bf1-496d-aaa3-6196f8f1713c', 'name': 'ctest-vn-76508258', 'tenant_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'project_id': '32b5bbcfd30a4fe79b4dcbf96f10504c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de54b417-4841-49b0-90b1-f1f90fd41360'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-vn-76508258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-policy-allow-all-67337842']], 'subnet_ipam': [{'subnet_cidr': '43.166.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:12,536 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 13:40:12,824 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 13:40:12,847 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4ccfebca-2d2d-44d1-9531-e1039860dba8
2025-04-22 13:40:12,867 - DEBUG - Requesting: http://10.0.0.33:8082/project/32b5bbcf-d30a-4fe7-9b4d-cbf96f10504c
2025-04-22 13:40:12,933 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:12,944 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:12,952 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d81d56f-0d50-496c-aba5-9ee3ab862c7d
2025-04-22 13:40:12,958 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d81d56f-0d50-496c-aba5-9ee3ab862c7d
2025-04-22 13:40:12,964 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fb9667b8-e848-4f45-9142-4c02482b888a
2025-04-22 13:40:12,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 13:40:12,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:12,978 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d81d56f-0d50-496c-aba5-9ee3ab862c7d
2025-04-22 13:40:12,989 - INFO - Verified VN network id 9 for VN 55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:12,989 - INFO - Verifications in API Server for VN ctest-vn-91837952 passed
2025-04-22 13:40:12,989 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:12,998 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d81d56f-0d50-496c-aba5-9ee3ab862c7d
2025-04-22 13:40:13,004 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d81d56f-0d50-496c-aba5-9ee3ab862c7d
2025-04-22 13:40:13,009 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fb9667b8-e848-4f45-9142-4c02482b888a
2025-04-22 13:40:13,020 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10591134', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6194846313161510067', 'uuid-lslong': '9891789625768174517'}, 'enable': 'true', 'created': '2025-04-22T13:40:10', 'last-modified': '2025-04-22T13:40:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889028'}
2025-04-22 13:40:13,026 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 13:40:13,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91837952 passed
2025-04-22 13:40:13,026 - DEBUG - ====Verifying policy data for ctest-vn-91837952 in API_Server ======
2025-04-22 13:40:13,026 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 13:40:13,030 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4ccfebca-2d2d-44d1-9531-e1039860dba8
2025-04-22 13:40:13,041 - DEBUG - Requesting: http://10.0.0.33:8082/project/32b5bbcf-d30a-4fe7-9b4d-cbf96f10504c
2025-04-22 13:40:13,116 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55f883e6-6e21-4cb3-8946-b24174ce63b5
2025-04-22 13:40:13,128 - DEBUG - ==>Verifying data for policy with id: f8687a2a-ec98-44ee-9d01-536413622df0, fqn: ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-policy-allow-all-67337842']
2025-04-22 13:40:13,128 - INFO - VN ctest-vn-91837952 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 13:40:13,128 - DEBUG - Verifying the vn in opserver
2025-04-22 13:40:13,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952 virtual network link through opserver 10.0.0.33
2025-04-22 13:40:13,128 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 13:40:13,420 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 13:40:13,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952?flat'}
2025-04-22 13:40:13,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-91837952 is found in opserver
2025-04-22 13:40:13,478 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 13:40:13,482 - DEBUG - VRF ids for VN ctest-vn-91837952: {}
2025-04-22 13:40:13,482 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 13:40:13,487 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4ccfebca-2d2d-44d1-9531-e1039860dba8
2025-04-22 13:40:13,498 - DEBUG - Requesting: http://10.0.0.33:8082/project/32b5bbcf-d30a-4fe7-9b4d-cbf96f10504c
2025-04-22 13:40:13,573 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,584 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,593 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/26f29349-e86e-467b-bc00-fc803a166255
2025-04-22 13:40:13,600 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/26f29349-e86e-467b-bc00-fc803a166255
2025-04-22 13:40:13,606 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6f2fdc63-83e8-4c67-9983-e546a4bff6e4
2025-04-22 13:40:13,611 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 13:40:13,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,621 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/26f29349-e86e-467b-bc00-fc803a166255
2025-04-22 13:40:13,634 - INFO - Verified VN network id 10 for VN 8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,634 - INFO - Verifications in API Server for VN ctest-vn-76508258 passed
2025-04-22 13:40:13,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,644 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/26f29349-e86e-467b-bc00-fc803a166255
2025-04-22 13:40:13,650 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/26f29349-e86e-467b-bc00-fc803a166255
2025-04-22 13:40:13,656 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6f2fdc63-83e8-4c67-9983-e546a4bff6e4
2025-04-22 13:40:13,668 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-76508258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10591134', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10200889594949486957', 'uuid-lslong': '12295778708701147452'}, 'enable': 'true', 'created': '2025-04-22T13:40:11', 'last-modified': '2025-04-22T13:40:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318698'}
2025-04-22 13:40:13,674 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 13:40:13,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76508258 passed
2025-04-22 13:40:13,674 - DEBUG - ====Verifying policy data for ctest-vn-76508258 in API_Server ======
2025-04-22 13:40:13,674 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 13:40:13,679 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4ccfebca-2d2d-44d1-9531-e1039860dba8
2025-04-22 13:40:13,689 - DEBUG - Requesting: http://10.0.0.33:8082/project/32b5bbcf-d30a-4fe7-9b4d-cbf96f10504c
2025-04-22 13:40:13,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8d90d70a-3bf1-496d-aaa3-6196f8f1713c
2025-04-22 13:40:13,774 - DEBUG - ==>Verifying data for policy with id: f8687a2a-ec98-44ee-9d01-536413622df0, fqn: ['default-domain', 'ctest-TestBasicPolicy-10591134', 'ctest-policy-allow-all-67337842']
2025-04-22 13:40:13,774 - INFO - VN ctest-vn-76508258 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 13:40:13,774 - DEBUG - Verifying the vn in opserver
2025-04-22 13:40:13,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-76508258 virtual network link through opserver 10.0.0.33
2025-04-22 13:40:13,775 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 13:40:13,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-76508258', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-76508258?flat'}
2025-04-22 13:40:13,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10591134:ctest-vn-76508258 is found in opserver
2025-04-22 13:40:13,795 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 13:40:13,799 - DEBUG - VRF ids for VN ctest-vn-76508258: {}
2025-04-22 13:40:13,848 - DEBUG - Services list from nova: [