2024-09-13 11:38:19,058 - INFO - Domain Default found not creating
2024-09-13 11:38:19,260 - INFO - Project ctest-TestBasicPolicy-56460208 not found, creating it
2024-09-13 11:38:19,815 - INFO - Created Project:ctest-TestBasicPolicy-56460208, ID : 0830e650-0aeb-46df-98e7-ecb76f34a510
2024-09-13 11:38:21,463 - INFO - ================================================================================
2024-09-13 11:38:21,463 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 11:38:21,464 - 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 11:38:21,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.10': '0'}} with
2024-09-13 11:38:21,726 - INFO - Initial checks done. Running the testcase now
2024-09-13 11:38:21,726 - INFO -
2024-09-13 11:38:22,692 - DEBUG - Response for create_network : {'network': {'id': '7b7968c6-b71b-495f-9714-b00073374da4', 'name': 'ctest-vn-40368442', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-40368442'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 11:38:23,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc41fe7a-b613-4884-9b3b-e2ff4416d3ce', 'name': '', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'network_id': '7b7968c6-b71b-495f-9714-b00073374da4', 'ip_version': 4, 'cidr': '121.241.52.128/26', 'allocation_pools': [{'start': '121.241.52.130', 'end': '121.241.52.190'}], 'gateway_ip': '121.241.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.241.52.130', 'tags': [], 'project_id': '0830e6500aeb46df98e7ecb76f34a510'}}
2024-09-13 11:38:23,097 - INFO - Created VN ctest-vn-40368442
2024-09-13 11:38:23,159 - DEBUG - VN ctest-vn-40368442 UUID is 7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:23,517 - DEBUG - Response for create_network : {'network': {'id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'name': 'ctest-vn-33350240', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-33350240'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 11:38:23,707 - DEBUG - Response for create_subnet : {'subnet': {'id': '41c955bb-b072-42bf-a5c7-c1aa99e8c296', 'name': '', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'network_id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'ip_version': 4, 'cidr': '3.231.244.128/26', 'allocation_pools': [{'start': '3.231.244.130', 'end': '3.231.244.190'}], 'gateway_ip': '3.231.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.231.244.130', 'tags': [], 'project_id': '0830e6500aeb46df98e7ecb76f34a510'}}
2024-09-13 11:38:23,729 - INFO - Created VN ctest-vn-33350240
2024-09-13 11:38:23,791 - DEBUG - VN ctest-vn-33350240 UUID is 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:23,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442, 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-56460208:ctest-vn-33350240, 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 11:38:24,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b7968c6-b71b-495f-9714-b00073374da4', 'name': 'ctest-vn-40368442', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc41fe7a-b613-4884-9b3b-e2ff4416d3ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-40368442'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']], 'subnet_ipam': [{'subnet_cidr': '121.241.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 11:38:24,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '168d2545-a1ea-4d57-8847-9a5f6b6f9b5d', 'name': 'ctest-vn-33350240', 'tenant_id': '0830e6500aeb46df98e7ecb76f34a510', 'project_id': '0830e6500aeb46df98e7ecb76f34a510', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41c955bb-b072-42bf-a5c7-c1aa99e8c296'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-vn-33350240'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']], 'subnet_ipam': [{'subnet_cidr': '3.231.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 11:38:24,639 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 11:38:24,946 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 11:38:24,980 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e
2024-09-13 11:38:24,999 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510
2024-09-13 11:38:25,085 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,104 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,118 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634
2024-09-13 11:38:25,127 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634
2024-09-13 11:38:25,136 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b2cb3089-b479-4279-8bd2-8ee65d1244cd
2024-09-13 11:38:25,145 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 11:38:25,146 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,160 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634
2024-09-13 11:38:25,182 - INFO - Verified VN network id 9 for VN 7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,182 - INFO - Verifications in API Server for VN ctest-vn-40368442 passed
2024-09-13 11:38:25,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,202 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634
2024-09-13 11:38:25,217 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/374835da-ee04-4e2b-a9a2-27dc3c18d634
2024-09-13 11:38:25,228 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b2cb3089-b479-4279-8bd2-8ee65d1244cd
2024-09-13 11:38:25,247 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56460208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8897257741531957599', 'uuid-lslong': '10886519715240824228'}, 'enable': 'true', 'created': '2024-09-13T11:38:22', 'last-modified': '2024-09-13T11:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035694'}
2024-09-13 11:38:25,257 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 11:38:25,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40368442 passed
2024-09-13 11:38:25,258 - DEBUG - ====Verifying policy data for ctest-vn-40368442 in API_Server ======
2024-09-13 11:38:25,258 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 11:38:25,266 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e
2024-09-13 11:38:25,291 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510
2024-09-13 11:38:25,375 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/7b7968c6-b71b-495f-9714-b00073374da4
2024-09-13 11:38:25,391 - DEBUG - ==>Verifying data for policy with id: b036866d-ac14-4e45-97aa-181d964cedf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']
2024-09-13 11:38:25,391 - INFO - VN ctest-vn-40368442 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 11:38:25,391 - DEBUG - Verifying the vn in opserver
2024-09-13 11:38:25,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442 virtual network link through opserver 10.0.0.40
2024-09-13 11:38:25,391 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 11:38:25,690 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 11:38:25,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442?flat'}
2024-09-13 11:38:25,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-40368442 is found in opserver
2024-09-13 11:38:25,781 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 11:38:25,787 - DEBUG - VRF ids for VN ctest-vn-40368442: {}
2024-09-13 11:38:25,787 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 11:38:25,794 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e
2024-09-13 11:38:25,809 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510
2024-09-13 11:38:25,895 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:25,912 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:25,927 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2
2024-09-13 11:38:25,938 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2
2024-09-13 11:38:25,948 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/277b6b4f-c1ce-4109-b83b-5e1c767e1fc8
2024-09-13 11:38:25,958 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 11:38:25,958 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:25,974 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2
2024-09-13 11:38:25,998 - INFO - Verified VN network id 10 for VN 168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:25,998 - INFO - Verifications in API Server for VN ctest-vn-33350240 passed
2024-09-13 11:38:25,998 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:26,016 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2
2024-09-13 11:38:26,026 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5800baab-f5bd-4802-8e98-09af37887eb2
2024-09-13 11:38:26,037 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/277b6b4f-c1ce-4109-b83b-5e1c767e1fc8
2024-09-13 11:38:26,054 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56460208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1624996021550075223', 'uuid-lslong': '9819987247119702877'}, 'enable': 'true', 'created': '2024-09-13T11:38:23', 'last-modified': '2024-09-13T11:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.587078'}
2024-09-13 11:38:26,061 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 11:38:26,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33350240 passed
2024-09-13 11:38:26,061 - DEBUG - ====Verifying policy data for ctest-vn-33350240 in API_Server ======
2024-09-13 11:38:26,061 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-09-13 11:38:26,069 - DEBUG - Requesting: http://10.0.0.40:8082/domain/8b060db6-655c-4713-a820-ee05db3ff19e
2024-09-13 11:38:26,084 - DEBUG - Requesting: http://10.0.0.40:8082/project/0830e650-0aeb-46df-98e7-ecb76f34a510
2024-09-13 11:38:26,170 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/168d2545-a1ea-4d57-8847-9a5f6b6f9b5d
2024-09-13 11:38:26,187 - DEBUG - ==>Verifying data for policy with id: b036866d-ac14-4e45-97aa-181d964cedf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56460208', 'ctest-policy-allow-all-36491327']
2024-09-13 11:38:26,187 - INFO - VN ctest-vn-33350240 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 11:38:26,187 - DEBUG - Verifying the vn in opserver
2024-09-13 11:38:26,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240 virtual network link through opserver 10.0.0.40
2024-09-13 11:38:26,187 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-09-13 11:38:26,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240?flat'}
2024-09-13 11:38:26,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56460208:ctest-vn-33350240 is found in opserver
2024-09-13 11:38:26,212 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 11:38:26,218 - DEBUG - VRF ids for VN ctest-vn-33350240: {}
2024-09-13 11:38:26,277 - DEBUG - Services list from nova: [