2024-12-30 20:33:21,658 - INFO - Domain Default found not creating
2024-12-30 20:33:21,815 - INFO - Project ctest-TestBasicPolicy-32186916 not found, creating it
2024-12-30 20:33:22,288 - INFO - Created Project:ctest-TestBasicPolicy-32186916, ID : 5a082304-302a-4cd6-9b35-439932984cac
2024-12-30 20:33:23,861 - INFO - ================================================================================
2024-12-30 20:33:23,861 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-30 20:33:23,861 - 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
2024-12-30 20:33:24,125 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.5': '0'}} with
2024-12-30 20:33:24,125 - INFO - Initial checks done. Running the testcase now
2024-12-30 20:33:24,125 - INFO -
2024-12-30 20:33:24,657 - DEBUG - Response for create_network : {'network': {'id': 'c77afb9c-35f5-4d72-a839-48d9495ab097', 'name': 'ctest-vn-90930172', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'project_id': '5a082304302a4cd69b35439932984cac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-vn-90930172'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 20:33:24,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cee81dc1-4bd5-4054-9886-f07e5b058e51', 'name': '', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'network_id': 'c77afb9c-35f5-4d72-a839-48d9495ab097', 'ip_version': 4, 'cidr': '138.168.154.192/26', 'allocation_pools': [{'start': '138.168.154.194', 'end': '138.168.154.254'}], 'gateway_ip': '138.168.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.168.154.194', 'tags': [], 'project_id': '5a082304302a4cd69b35439932984cac'}}
2024-12-30 20:33:24,856 - INFO - Created VN ctest-vn-90930172
2024-12-30 20:33:24,911 - DEBUG - VN ctest-vn-90930172 UUID is c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:25,240 - DEBUG - Response for create_network : {'network': {'id': 'a285818d-cba5-4756-93bb-a44d39246083', 'name': 'ctest-vn-76538867', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'project_id': '5a082304302a4cd69b35439932984cac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-vn-76538867'], 'port_security_enabled': True, 'description': ''}}
2024-12-30 20:33:25,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b5d9803-dfbe-4497-a645-d38912a1d269', 'name': '', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'network_id': 'a285818d-cba5-4756-93bb-a44d39246083', 'ip_version': 4, 'cidr': '109.170.117.64/26', 'allocation_pools': [{'start': '109.170.117.66', 'end': '109.170.117.126'}], 'gateway_ip': '109.170.117.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.170.117.66', 'tags': [], 'project_id': '5a082304302a4cd69b35439932984cac'}}
2024-12-30 20:33:25,418 - INFO - Created VN ctest-vn-76538867
2024-12-30 20:33:25,471 - DEBUG - VN ctest-vn-76538867 UUID is a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:25,584 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172, 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-32186916:ctest-vn-76538867, 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]
2024-12-30 20:33:25,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c77afb9c-35f5-4d72-a839-48d9495ab097', 'name': 'ctest-vn-90930172', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'project_id': '5a082304302a4cd69b35439932984cac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cee81dc1-4bd5-4054-9886-f07e5b058e51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-vn-90930172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-policy-allow-all-55485000']], 'subnet_ipam': [{'subnet_cidr': '138.168.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 20:33:26,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a285818d-cba5-4756-93bb-a44d39246083', 'name': 'ctest-vn-76538867', 'tenant_id': '5a082304302a4cd69b35439932984cac', 'project_id': '5a082304302a4cd69b35439932984cac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b5d9803-dfbe-4497-a645-d38912a1d269'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-vn-76538867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-policy-allow-all-55485000']], 'subnet_ipam': [{'subnet_cidr': '109.170.117.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-30 20:33:26,331 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-30 20:33:26,625 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-30 20:33:26,653 - DEBUG - Requesting: http://10.0.0.24:8082/domain/80a65b5b-b66e-4839-be6b-4444be76624c
2024-12-30 20:33:26,666 - DEBUG - Requesting: http://10.0.0.24:8082/project/5a082304-302a-4cd6-9b35-439932984cac
2024-12-30 20:33:26,743 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,755 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,765 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/07f879ed-4ef3-45a1-83b9-9712f8474055
2024-12-30 20:33:26,774 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/07f879ed-4ef3-45a1-83b9-9712f8474055
2024-12-30 20:33:26,783 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/bafb5020-7119-4dee-8b2c-da5c978c456f
2024-12-30 20:33:26,790 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 20:33:26,790 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,800 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/07f879ed-4ef3-45a1-83b9-9712f8474055
2024-12-30 20:33:26,817 - INFO - Verified VN network id 9 for VN c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,817 - INFO - Verifications in API Server for VN ctest-vn-90930172 passed
2024-12-30 20:33:26,817 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,831 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/07f879ed-4ef3-45a1-83b9-9712f8474055
2024-12-30 20:33:26,840 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/07f879ed-4ef3-45a1-83b9-9712f8474055
2024-12-30 20:33:26,848 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/bafb5020-7119-4dee-8b2c-da5c978c456f
2024-12-30 20:33:26,861 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32186916', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14374077809045097842', 'uuid-lslong': '12121799970120183959'}, 'enable': 'true', 'created': '2024-12-30T20:33:24', 'last-modified': '2024-12-30T20:33:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998291'}
2024-12-30 20:33:26,867 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-30 20:33:26,867 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90930172 passed
2024-12-30 20:33:26,868 - DEBUG - ====Verifying policy data for ctest-vn-90930172 in API_Server ======
2024-12-30 20:33:26,868 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-30 20:33:26,874 - DEBUG - Requesting: http://10.0.0.24:8082/domain/80a65b5b-b66e-4839-be6b-4444be76624c
2024-12-30 20:33:26,885 - DEBUG - Requesting: http://10.0.0.24:8082/project/5a082304-302a-4cd6-9b35-439932984cac
2024-12-30 20:33:26,957 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c77afb9c-35f5-4d72-a839-48d9495ab097
2024-12-30 20:33:26,967 - DEBUG - ==>Verifying data for policy with id: 2919f675-ee99-4ce6-b6bd-f64480297c1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-policy-allow-all-55485000']
2024-12-30 20:33:26,967 - INFO - VN ctest-vn-90930172 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 20:33:26,967 - DEBUG - Verifying the vn in opserver
2024-12-30 20:33:26,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172 virtual network link through opserver 10.0.0.24
2024-12-30 20:33:26,967 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-30 20:33:27,257 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-30 20:33:27,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172?flat'}
2024-12-30 20:33:27,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-90930172 is found in opserver
2024-12-30 20:33:27,327 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 20:33:27,333 - DEBUG - VRF ids for VN ctest-vn-90930172: {}
2024-12-30 20:33:27,333 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-30 20:33:27,341 - DEBUG - Requesting: http://10.0.0.24:8082/domain/80a65b5b-b66e-4839-be6b-4444be76624c
2024-12-30 20:33:27,357 - DEBUG - Requesting: http://10.0.0.24:8082/project/5a082304-302a-4cd6-9b35-439932984cac
2024-12-30 20:33:27,432 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,445 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,455 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/133b0239-6a19-4582-b79d-c6d80868e506
2024-12-30 20:33:27,463 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/133b0239-6a19-4582-b79d-c6d80868e506
2024-12-30 20:33:27,471 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/352657a3-d43b-457d-be2b-76c6bdb6cf41
2024-12-30 20:33:27,478 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 20:33:27,478 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,487 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/133b0239-6a19-4582-b79d-c6d80868e506
2024-12-30 20:33:27,501 - INFO - Verified VN network id 10 for VN a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,501 - INFO - Verifications in API Server for VN ctest-vn-76538867 passed
2024-12-30 20:33:27,501 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,512 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/133b0239-6a19-4582-b79d-c6d80868e506
2024-12-30 20:33:27,519 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/133b0239-6a19-4582-b79d-c6d80868e506
2024-12-30 20:33:27,526 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/352657a3-d43b-457d-be2b-76c6bdb6cf41
2024-12-30 20:33:27,538 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-76538867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32186916', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11710908852053821270', 'uuid-lslong': '10645282795798421635'}, 'enable': 'true', 'created': '2024-12-30T20:33:25', 'last-modified': '2024-12-30T20:33:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.424340'}
2024-12-30 20:33:27,544 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-30 20:33:27,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76538867 passed
2024-12-30 20:33:27,545 - DEBUG - ====Verifying policy data for ctest-vn-76538867 in API_Server ======
2024-12-30 20:33:27,545 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-30 20:33:27,551 - DEBUG - Requesting: http://10.0.0.24:8082/domain/80a65b5b-b66e-4839-be6b-4444be76624c
2024-12-30 20:33:27,566 - DEBUG - Requesting: http://10.0.0.24:8082/project/5a082304-302a-4cd6-9b35-439932984cac
2024-12-30 20:33:27,639 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a285818d-cba5-4756-93bb-a44d39246083
2024-12-30 20:33:27,649 - DEBUG - ==>Verifying data for policy with id: 2919f675-ee99-4ce6-b6bd-f64480297c1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-32186916', 'ctest-policy-allow-all-55485000']
2024-12-30 20:33:27,650 - INFO - VN ctest-vn-76538867 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-30 20:33:27,650 - DEBUG - Verifying the vn in opserver
2024-12-30 20:33:27,650 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-76538867 virtual network link through opserver 10.0.0.24
2024-12-30 20:33:27,650 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-30 20:33:27,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-76538867', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-76538867?flat'}
2024-12-30 20:33:27,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32186916:ctest-vn-76538867 is found in opserver
2024-12-30 20:33:27,672 - DEBUG - Do not have enough data to verify VN in agent
2024-12-30 20:33:27,677 - DEBUG - VRF ids for VN ctest-vn-76538867: {}
2024-12-30 20:33:27,733 - DEBUG - Services list from nova: [