2025-01-05 13:49:45,986 - INFO - Domain Default found not creating
2025-01-05 13:49:46,165 - INFO - Project ctest-TestBasicPolicy-65436887 not found, creating it
2025-01-05 13:49:46,858 - INFO - Created Project:ctest-TestBasicPolicy-65436887, ID : b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8
2025-01-05 13:49:48,222 - INFO - ================================================================================
2025-01-05 13:49:48,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-05 13:49:48,222 - 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-01-05 13:49:48,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with
2025-01-05 13:49:48,478 - INFO - Initial checks done. Running the testcase now
2025-01-05 13:49:48,479 - INFO -
2025-01-05 13:49:49,037 - DEBUG - Response for create_network : {'network': {'id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'name': 'ctest-vn-45527245', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-45527245'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:49:49,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c23062-44e5-4951-91ff-bf7c603c4c4a', 'name': '', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'network_id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'ip_version': 4, 'cidr': '131.250.9.128/26', 'allocation_pools': [{'start': '131.250.9.130', 'end': '131.250.9.190'}], 'gateway_ip': '131.250.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.250.9.130', 'tags': [], 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8'}}
2025-01-05 13:49:49,243 - INFO - Created VN ctest-vn-45527245
2025-01-05 13:49:49,297 - DEBUG - VN ctest-vn-45527245 UUID is f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:49,583 - DEBUG - Response for create_network : {'network': {'id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'name': 'ctest-vn-44327915', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-44327915'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:49:49,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f12148b-50ef-4558-b9a1-b3f583dc2dc5', 'name': '', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'network_id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'ip_version': 4, 'cidr': '118.189.121.0/26', 'allocation_pools': [{'start': '118.189.121.2', 'end': '118.189.121.62'}], 'gateway_ip': '118.189.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.189.121.2', 'tags': [], 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8'}}
2025-01-05 13:49:49,741 - INFO - Created VN ctest-vn-44327915
2025-01-05 13:49:49,793 - DEBUG - VN ctest-vn-44327915 UUID is 862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:49,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245, 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-65436887:ctest-vn-44327915, 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-01-05 13:49:50,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'name': 'ctest-vn-45527245', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c23062-44e5-4951-91ff-bf7c603c4c4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-45527245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']], 'subnet_ipam': [{'subnet_cidr': '131.250.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:49:50,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'name': 'ctest-vn-44327915', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f12148b-50ef-4558-b9a1-b3f583dc2dc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-44327915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']], 'subnet_ipam': [{'subnet_cidr': '118.189.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:49:50,717 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-05 13:49:51,011 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-05 13:49:51,037 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616
2025-01-05 13:49:51,050 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8
2025-01-05 13:49:51,119 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,131 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,142 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf
2025-01-05 13:49:51,149 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf
2025-01-05 13:49:51,156 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7e32ef58-1062-4584-815d-b5e97c8af793
2025-01-05 13:49:51,162 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-05 13:49:51,162 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,171 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf
2025-01-05 13:49:51,183 - INFO - Verified VN network id 8 for VN f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,183 - INFO - Verifications in API Server for VN ctest-vn-45527245 passed
2025-01-05 13:49:51,183 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,193 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf
2025-01-05 13:49:51,202 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf
2025-01-05 13:49:51,211 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7e32ef58-1062-4584-815d-b5e97c8af793
2025-01-05 13:49:51,226 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65436887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17802879779829990990', 'uuid-lslong': '9964736760571700659'}, 'enable': 'true', 'created': '2025-01-05T13:49:49', 'last-modified': '2025-01-05T13:49:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999508'}
2025-01-05 13:49:51,232 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-05 13:49:51,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45527245 passed
2025-01-05 13:49:51,232 - DEBUG - ====Verifying policy data for ctest-vn-45527245 in API_Server ======
2025-01-05 13:49:51,232 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-05 13:49:51,237 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616
2025-01-05 13:49:51,248 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8
2025-01-05 13:49:51,322 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3
2025-01-05 13:49:51,331 - DEBUG - ==>Verifying data for policy with id: 4e6f4eb0-29b0-405c-b76f-543d76a93e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']
2025-01-05 13:49:51,331 - INFO - VN ctest-vn-45527245 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 13:49:51,331 - DEBUG - Verifying the vn in opserver
2025-01-05 13:49:51,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245 virtual network link through opserver 10.0.0.42
2025-01-05 13:49:51,331 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-05 13:49:51,623 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-05 13:49:51,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245?flat'}
2025-01-05 13:49:51,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245 is found in opserver
2025-01-05 13:49:51,691 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 13:49:51,696 - DEBUG - VRF ids for VN ctest-vn-45527245: {}
2025-01-05 13:49:51,696 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-05 13:49:51,701 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616
2025-01-05 13:49:51,713 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8
2025-01-05 13:49:51,784 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:51,797 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:51,808 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1
2025-01-05 13:49:51,817 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1
2025-01-05 13:49:51,824 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bb74565e-8b8d-4ccf-b2bf-0ddff3c9c0ba
2025-01-05 13:49:51,832 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 13:49:51,832 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:51,842 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1
2025-01-05 13:49:51,858 - INFO - Verified VN network id 9 for VN 862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:51,858 - INFO - Verifications in API Server for VN ctest-vn-44327915 passed
2025-01-05 13:49:51,858 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:51,868 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1
2025-01-05 13:49:51,876 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1
2025-01-05 13:49:51,883 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bb74565e-8b8d-4ccf-b2bf-0ddff3c9c0ba
2025-01-05 13:49:51,895 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65436887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9668484819283363913', 'uuid-lslong': '9340357683293787813'}, 'enable': 'true', 'created': '2025-01-05T13:49:49', 'last-modified': '2025-01-05T13:49:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.418403'}
2025-01-05 13:49:51,901 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 13:49:51,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44327915 passed
2025-01-05 13:49:51,902 - DEBUG - ====Verifying policy data for ctest-vn-44327915 in API_Server ======
2025-01-05 13:49:51,902 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-01-05 13:49:51,908 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616
2025-01-05 13:49:51,920 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8
2025-01-05 13:49:51,996 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5
2025-01-05 13:49:52,006 - DEBUG - ==>Verifying data for policy with id: 4e6f4eb0-29b0-405c-b76f-543d76a93e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']
2025-01-05 13:49:52,006 - INFO - VN ctest-vn-44327915 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 13:49:52,006 - DEBUG - Verifying the vn in opserver
2025-01-05 13:49:52,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915 virtual network link through opserver 10.0.0.42
2025-01-05 13:49:52,006 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-01-05 13:49:52,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915?flat'}
2025-01-05 13:49:52,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915 is found in opserver
2025-01-05 13:49:52,026 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 13:49:52,030 - DEBUG - VRF ids for VN ctest-vn-44327915: {}
2025-01-05 13:49:52,084 - DEBUG - Services list from nova: [