2025-03-28 11:12:36,836 - INFO - Domain Default found not creating
2025-03-28 11:12:37,032 - INFO - Project ctest-TestBasicPolicy-25940352 not found, creating it
2025-03-28 11:12:37,588 - INFO - Created Project:ctest-TestBasicPolicy-25940352, ID : 05b34adc-8ec0-4a46-b9be-d61721b3a157
2025-03-28 11:12:39,365 - INFO - ================================================================================
2025-03-28 11:12:39,365 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 11:12:39,365 - 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-03-28 11:12:39,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with
2025-03-28 11:12:39,658 - INFO - Initial checks done. Running the testcase now
2025-03-28 11:12:39,658 - INFO -
2025-03-28 11:12:40,244 - DEBUG - Response for create_network : {'network': {'id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'name': 'ctest-vn-48987593', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-48987593'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:12:40,460 - DEBUG - Response for create_subnet : {'subnet': {'id': '8003d83b-07a5-4334-b01e-3a60e009d443', 'name': '', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'network_id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'ip_version': 4, 'cidr': '56.196.126.192/26', 'allocation_pools': [{'start': '56.196.126.194', 'end': '56.196.126.254'}], 'gateway_ip': '56.196.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.196.126.194', 'tags': [], 'project_id': '05b34adc8ec04a46b9bed61721b3a157'}}
2025-03-28 11:12:40,482 - INFO - Created VN ctest-vn-48987593
2025-03-28 11:12:40,541 - DEBUG - VN ctest-vn-48987593 UUID is 54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:40,872 - DEBUG - Response for create_network : {'network': {'id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'name': 'ctest-vn-54179984', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-54179984'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:12:41,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '282319a8-13e1-4944-967f-d94c2a25c855', 'name': '', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'network_id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'ip_version': 4, 'cidr': '173.198.215.128/26', 'allocation_pools': [{'start': '173.198.215.130', 'end': '173.198.215.190'}], 'gateway_ip': '173.198.215.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.198.215.130', 'tags': [], 'project_id': '05b34adc8ec04a46b9bed61721b3a157'}}
2025-03-28 11:12:41,101 - INFO - Created VN ctest-vn-54179984
2025-03-28 11:12:41,157 - DEBUG - VN ctest-vn-54179984 UUID is 4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:41,280 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593, 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-25940352:ctest-vn-54179984, 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-03-28 11:12:41,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'name': 'ctest-vn-48987593', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8003d83b-07a5-4334-b01e-3a60e009d443'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-48987593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']], 'subnet_ipam': [{'subnet_cidr': '56.196.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:12:41,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'name': 'ctest-vn-54179984', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['282319a8-13e1-4944-967f-d94c2a25c855'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-54179984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']], 'subnet_ipam': [{'subnet_cidr': '173.198.215.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 11:12:42,045 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 11:12:42,354 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 11:12:42,392 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375
2025-03-28 11:12:42,407 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157
2025-03-28 11:12:42,489 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,504 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,516 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005
2025-03-28 11:12:42,527 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005
2025-03-28 11:12:42,536 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0c971344-dfeb-4cc4-9c11-ee9e4ca230b5
2025-03-28 11:12:42,545 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 11:12:42,545 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,557 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005
2025-03-28 11:12:42,576 - INFO - Verified VN network id 9 for VN 54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,576 - INFO - Verifications in API Server for VN ctest-vn-48987593 passed
2025-03-28 11:12:42,576 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,590 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005
2025-03-28 11:12:42,601 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005
2025-03-28 11:12:42,610 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0c971344-dfeb-4cc4-9c11-ee9e4ca230b5
2025-03-28 11:12:42,628 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25940352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6101703458463498244', 'uuid-lslong': '13069500019299625853'}, 'enable': 'true', 'created': '2025-03-28T11:12:40', 'last-modified': '2025-03-28T11:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028943'}
2025-03-28 11:12:42,636 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 11:12:42,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48987593 passed
2025-03-28 11:12:42,636 - DEBUG - ====Verifying policy data for ctest-vn-48987593 in API_Server ======
2025-03-28 11:12:42,636 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 11:12:42,645 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375
2025-03-28 11:12:42,659 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157
2025-03-28 11:12:42,735 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d
2025-03-28 11:12:42,747 - DEBUG - ==>Verifying data for policy with id: f9a51511-8e3a-49e1-8369-b5a52a47b654, fqn: ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']
2025-03-28 11:12:42,747 - INFO - VN ctest-vn-48987593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 11:12:42,747 - DEBUG - Verifying the vn in opserver
2025-03-28 11:12:42,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593 virtual network link through opserver 10.0.0.24
2025-03-28 11:12:42,747 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 11:12:43,048 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 11:12:43,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593?flat'}
2025-03-28 11:12:43,144 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593 is found in opserver
2025-03-28 11:12:43,167 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 11:12:43,177 - DEBUG - VRF ids for VN ctest-vn-48987593: {}
2025-03-28 11:12:43,177 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 11:12:43,188 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375
2025-03-28 11:12:43,205 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157
2025-03-28 11:12:43,291 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,317 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,329 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e
2025-03-28 11:12:43,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e
2025-03-28 11:12:43,348 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ba713308-a2f4-4f2a-bcf1-5632d87a9ab5
2025-03-28 11:12:43,357 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 11:12:43,357 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,369 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e
2025-03-28 11:12:43,392 - INFO - Verified VN network id 10 for VN 4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,393 - INFO - Verifications in API Server for VN ctest-vn-54179984 passed
2025-03-28 11:12:43,393 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,408 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e
2025-03-28 11:12:43,419 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e
2025-03-28 11:12:43,427 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ba713308-a2f4-4f2a-bcf1-5632d87a9ab5
2025-03-28 11:12:43,444 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25940352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5476532800408014558', 'uuid-lslong': '12730582649692566437'}, 'enable': 'true', 'created': '2025-03-28T11:12:40', 'last-modified': '2025-03-28T11:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.600518'}
2025-03-28 11:12:43,453 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 11:12:43,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54179984 passed
2025-03-28 11:12:43,453 - DEBUG - ====Verifying policy data for ctest-vn-54179984 in API_Server ======
2025-03-28 11:12:43,453 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-03-28 11:12:43,464 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375
2025-03-28 11:12:43,481 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157
2025-03-28 11:12:43,570 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5
2025-03-28 11:12:43,584 - DEBUG - ==>Verifying data for policy with id: f9a51511-8e3a-49e1-8369-b5a52a47b654, fqn: ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']
2025-03-28 11:12:43,584 - INFO - VN ctest-vn-54179984 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 11:12:43,584 - DEBUG - Verifying the vn in opserver
2025-03-28 11:12:43,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984 virtual network link through opserver 10.0.0.24
2025-03-28 11:12:43,584 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-03-28 11:12:43,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984?flat'}
2025-03-28 11:12:43,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984 is found in opserver
2025-03-28 11:12:43,611 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 11:12:43,618 - DEBUG - VRF ids for VN ctest-vn-54179984: {}
2025-03-28 11:12:43,688 - DEBUG - Services list from nova: [