2024-09-13 14:39:19,984 - INFO - Domain Default found not creating
2024-09-13 14:39:20,184 - INFO - Project ctest-TestBasicPolicy-87828155 not found, creating it
2024-09-13 14:39:20,683 - INFO - Created Project:ctest-TestBasicPolicy-87828155, ID : d00f0cd4-cf1e-4785-81e0-9e19f903ef5d
2024-09-13 14:39:22,261 - INFO - ================================================================================
2024-09-13 14:39:22,261 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 14:39:22,261 - 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-09-13 14:39:22,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with
2024-09-13 14:39:22,517 - INFO - Initial checks done. Running the testcase now
2024-09-13 14:39:22,517 - INFO -
2024-09-13 14:39:23,048 - DEBUG - Response for create_network : {'network': {'id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'name': 'ctest-vn-50877263', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-50877263'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:39:23,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '68ad94f1-8d9a-43dc-b000-4c1b7807bd0c', 'name': '', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'network_id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'ip_version': 4, 'cidr': '160.241.93.192/26', 'allocation_pools': [{'start': '160.241.93.194', 'end': '160.241.93.254'}], 'gateway_ip': '160.241.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.241.93.194', 'tags': [], 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d'}}
2024-09-13 14:39:23,270 - INFO - Created VN ctest-vn-50877263
2024-09-13 14:39:23,328 - DEBUG - VN ctest-vn-50877263 UUID is b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:23,637 - DEBUG - Response for create_network : {'network': {'id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'name': 'ctest-vn-22306988', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-22306988'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:39:23,801 - DEBUG - Response for create_subnet : {'subnet': {'id': '6787b77f-920b-4f8b-9418-f11d440a9317', 'name': '', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'network_id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'ip_version': 4, 'cidr': '82.234.145.192/26', 'allocation_pools': [{'start': '82.234.145.194', 'end': '82.234.145.254'}], 'gateway_ip': '82.234.145.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.234.145.194', 'tags': [], 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d'}}
2024-09-13 14:39:23,821 - INFO - Created VN ctest-vn-22306988
2024-09-13 14:39:23,879 - DEBUG - VN ctest-vn-22306988 UUID is 1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:24,004 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263, 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-87828155:ctest-vn-22306988, 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-09-13 14:39:24,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'name': 'ctest-vn-50877263', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68ad94f1-8d9a-43dc-b000-4c1b7807bd0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-50877263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']], 'subnet_ipam': [{'subnet_cidr': '160.241.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:39:24,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'name': 'ctest-vn-22306988', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6787b77f-920b-4f8b-9418-f11d440a9317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-22306988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']], 'subnet_ipam': [{'subnet_cidr': '82.234.145.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 14:39:24,744 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 14:39:25,046 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 14:39:25,077 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca
2024-09-13 14:39:25,096 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d
2024-09-13 14:39:25,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,199 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,214 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f
2024-09-13 14:39:25,223 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f
2024-09-13 14:39:25,233 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a118cd7c-2632-4749-bab1-67be5ae8f264
2024-09-13 14:39:25,241 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 14:39:25,241 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,255 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f
2024-09-13 14:39:25,276 - INFO - Verified VN network id 7 for VN b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,276 - INFO - Verifications in API Server for VN ctest-vn-50877263 passed
2024-09-13 14:39:25,276 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,293 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f
2024-09-13 14:39:25,302 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f
2024-09-13 14:39:25,310 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a118cd7c-2632-4749-bab1-67be5ae8f264
2024-09-13 14:39:25,325 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87828155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13040621969474798521', 'uuid-lslong': '9856932111835669786'}, 'enable': 'true', 'created': '2024-09-13T14:39:23', 'last-modified': '2024-09-13T14:39:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032811'}
2024-09-13 14:39:25,331 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 14:39:25,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50877263 passed
2024-09-13 14:39:25,332 - DEBUG - ====Verifying policy data for ctest-vn-50877263 in API_Server ======
2024-09-13 14:39:25,332 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 14:39:25,338 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca
2024-09-13 14:39:25,352 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d
2024-09-13 14:39:25,437 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a
2024-09-13 14:39:25,452 - DEBUG - ==>Verifying data for policy with id: 695b63d3-b6ad-4a3c-9d67-94b22718acb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']
2024-09-13 14:39:25,452 - INFO - VN ctest-vn-50877263 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 14:39:25,452 - DEBUG - Verifying the vn in opserver
2024-09-13 14:39:25,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263 virtual network link through opserver 10.0.0.40
2024-09-13 14:39:25,452 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 14:39:25,748 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 14:39:25,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263?flat'}
2024-09-13 14:39:25,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263 is found in opserver
2024-09-13 14:39:25,825 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 14:39:25,830 - DEBUG - VRF ids for VN ctest-vn-50877263: {}
2024-09-13 14:39:25,830 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 14:39:25,836 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca
2024-09-13 14:39:25,850 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d
2024-09-13 14:39:25,935 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:25,954 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:25,969 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13
2024-09-13 14:39:25,978 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13
2024-09-13 14:39:25,988 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/29d19b36-5383-4a16-a91c-4731688cbb26
2024-09-13 14:39:25,997 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 14:39:25,997 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:26,011 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13
2024-09-13 14:39:26,044 - INFO - Verified VN network id 8 for VN 1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:26,045 - INFO - Verifications in API Server for VN ctest-vn-22306988 passed
2024-09-13 14:39:26,045 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:26,060 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13
2024-09-13 14:39:26,072 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13
2024-09-13 14:39:26,082 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/29d19b36-5383-4a16-a91c-4731688cbb26
2024-09-13 14:39:26,097 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87828155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2270986750870307035', 'uuid-lslong': '11910102909224635287'}, 'enable': 'true', 'created': '2024-09-13T14:39:23', 'last-modified': '2024-09-13T14:39:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557825'}
2024-09-13 14:39:26,103 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 14:39:26,104 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22306988 passed
2024-09-13 14:39:26,104 - DEBUG - ====Verifying policy data for ctest-vn-22306988 in API_Server ======
2024-09-13 14:39:26,104 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 14:39:26,110 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca
2024-09-13 14:39:26,124 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d
2024-09-13 14:39:26,211 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97
2024-09-13 14:39:26,226 - DEBUG - ==>Verifying data for policy with id: 695b63d3-b6ad-4a3c-9d67-94b22718acb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']
2024-09-13 14:39:26,226 - INFO - VN ctest-vn-22306988 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 14:39:26,226 - DEBUG - Verifying the vn in opserver
2024-09-13 14:39:26,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988 virtual network link through opserver 10.0.0.40
2024-09-13 14:39:26,226 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 14:39:26,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988?flat'}
2024-09-13 14:39:26,240 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988 is found in opserver
2024-09-13 14:39:26,251 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 14:39:26,257 - DEBUG - VRF ids for VN ctest-vn-22306988: {}
2024-09-13 14:39:26,316 - DEBUG - Services list from nova: [