2025-08-31 04:50:38,103 - INFO - Domain Default found not creating
2025-08-31 04:50:38,231 - INFO - Project ctest-TestBasicPolicy-76212262 not found, creating it
2025-08-31 04:50:38,668 - INFO - Created Project:ctest-TestBasicPolicy-76212262, ID : c09db8a8-0d39-4c04-bb99-ff0fbc312c56
2025-08-31 04:50:40,065 - INFO - ================================================================================
2025-08-31 04:50:40,065 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-31 04:50:40,065 - 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-08-31 04:50:40,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-31 04:50:40,319 - INFO - Initial checks done. Running the testcase now
2025-08-31 04:50:40,319 - INFO -
2025-08-31 04:50:40,837 - DEBUG - Response for create_network : {'network': {'id': 'a1f491ed-135e-4a05-8e81-dcfca214a84e', 'name': 'ctest-vn-65320825', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-vn-65320825'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 04:50:41,036 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c24c08fc-1b1a-4ac5-934e-5c341b0ba9e5', 'name': '', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'network_id': 'a1f491ed-135e-4a05-8e81-dcfca214a84e', 'ip_version': 4, 'cidr': '157.105.130.128/26', 'allocation_pools': [{'start': '157.105.130.130', 'end': '157.105.130.190'}], 'gateway_ip': '157.105.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.105.130.130', 'tags': [], 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56'}}
2025-08-31 04:50:41,055 - INFO - Created VN ctest-vn-65320825
2025-08-31 04:50:41,109 - DEBUG - VN ctest-vn-65320825 UUID is a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:41,416 - DEBUG - Response for create_network : {'network': {'id': 'eb6095a9-9702-4ea2-adb3-d4b0fb628aef', 'name': 'ctest-vn-85917755', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-vn-85917755'], 'port_security_enabled': True, 'description': ''}}
2025-08-31 04:50:41,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfb2a975-bad4-43b4-ad04-231622530d95', 'name': '', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'network_id': 'eb6095a9-9702-4ea2-adb3-d4b0fb628aef', 'ip_version': 4, 'cidr': '173.236.154.0/26', 'allocation_pools': [{'start': '173.236.154.2', 'end': '173.236.154.62'}], 'gateway_ip': '173.236.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.236.154.2', 'tags': [], 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56'}}
2025-08-31 04:50:41,618 - INFO - Created VN ctest-vn-85917755
2025-08-31 04:50:41,669 - DEBUG - VN ctest-vn-85917755 UUID is eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:41,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825, 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-76212262:ctest-vn-85917755, 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-08-31 04:50:42,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1f491ed-135e-4a05-8e81-dcfca214a84e', 'name': 'ctest-vn-65320825', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c24c08fc-1b1a-4ac5-934e-5c341b0ba9e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-vn-65320825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-policy-allow-all-43886464']], 'subnet_ipam': [{'subnet_cidr': '157.105.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 04:50:42,369 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb6095a9-9702-4ea2-adb3-d4b0fb628aef', 'name': 'ctest-vn-85917755', 'tenant_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'project_id': 'c09db8a80d394c04bb99ff0fbc312c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfb2a975-bad4-43b4-ad04-231622530d95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-vn-85917755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-policy-allow-all-43886464']], 'subnet_ipam': [{'subnet_cidr': '173.236.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-31 04:50:42,525 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 04:50:42,827 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 04:50:42,854 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054
2025-08-31 04:50:42,865 - DEBUG - Requesting: http://10.0.0.50:8082/project/c09db8a8-0d39-4c04-bb99-ff0fbc312c56
2025-08-31 04:50:42,947 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:42,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:42,970 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a562c504-db0a-4a57-8dc5-64ce73620609
2025-08-31 04:50:42,981 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a562c504-db0a-4a57-8dc5-64ce73620609
2025-08-31 04:50:42,989 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fd52adc1-c39e-45a3-98c5-0f7b70ea9342
2025-08-31 04:50:42,997 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 04:50:42,997 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:43,006 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a562c504-db0a-4a57-8dc5-64ce73620609
2025-08-31 04:50:43,019 - INFO - Verified VN network id 12 for VN a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:43,019 - INFO - Verifications in API Server for VN ctest-vn-65320825 passed
2025-08-31 04:50:43,019 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:43,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a562c504-db0a-4a57-8dc5-64ce73620609
2025-08-31 04:50:43,033 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a562c504-db0a-4a57-8dc5-64ce73620609
2025-08-31 04:50:43,041 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fd52adc1-c39e-45a3-98c5-0f7b70ea9342
2025-08-31 04:50:43,052 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76212262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11670112981842020869', 'uuid-lslong': '10268731602990573646'}, 'enable': 'true', 'created': '2025-08-31T04:50:40', 'last-modified': '2025-08-31T04:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948683'}
2025-08-31 04:50:43,057 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-31 04:50:43,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65320825 passed
2025-08-31 04:50:43,058 - DEBUG - ====Verifying policy data for ctest-vn-65320825 in API_Server ======
2025-08-31 04:50:43,058 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 04:50:43,062 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054
2025-08-31 04:50:43,072 - DEBUG - Requesting: http://10.0.0.50:8082/project/c09db8a8-0d39-4c04-bb99-ff0fbc312c56
2025-08-31 04:50:43,143 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1f491ed-135e-4a05-8e81-dcfca214a84e
2025-08-31 04:50:43,151 - DEBUG - ==>Verifying data for policy with id: af995212-0257-47a1-a0a5-e7a5ba60ca7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-policy-allow-all-43886464']
2025-08-31 04:50:43,151 - INFO - VN ctest-vn-65320825 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 04:50:43,151 - DEBUG - Verifying the vn in opserver
2025-08-31 04:50:43,151 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825 virtual network link through opserver 10.0.0.50
2025-08-31 04:50:43,151 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 04:50:43,444 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 04:50:43,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825?flat'}
2025-08-31 04:50:43,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-65320825 is found in opserver
2025-08-31 04:50:43,506 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 04:50:43,510 - DEBUG - VRF ids for VN ctest-vn-65320825: {}
2025-08-31 04:50:43,510 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 04:50:43,515 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054
2025-08-31 04:50:43,524 - DEBUG - Requesting: http://10.0.0.50:8082/project/c09db8a8-0d39-4c04-bb99-ff0fbc312c56
2025-08-31 04:50:43,600 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,614 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,622 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6466eaf9-6d88-43bb-ad13-dfb7ca04b3b5
2025-08-31 04:50:43,628 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6466eaf9-6d88-43bb-ad13-dfb7ca04b3b5
2025-08-31 04:50:43,633 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4ea805fd-00fc-4581-9486-55765d12a5ec
2025-08-31 04:50:43,639 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 04:50:43,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,645 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6466eaf9-6d88-43bb-ad13-dfb7ca04b3b5
2025-08-31 04:50:43,658 - INFO - Verified VN network id 13 for VN eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,658 - INFO - Verifications in API Server for VN ctest-vn-85917755 passed
2025-08-31 04:50:43,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,666 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6466eaf9-6d88-43bb-ad13-dfb7ca04b3b5
2025-08-31 04:50:43,671 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6466eaf9-6d88-43bb-ad13-dfb7ca04b3b5
2025-08-31 04:50:43,677 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4ea805fd-00fc-4581-9486-55765d12a5ec
2025-08-31 04:50:43,688 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-85917755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76212262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16960720752292810402', 'uuid-lslong': '12516581645989612271'}, 'enable': 'true', 'created': '2025-08-31T04:50:41', 'last-modified': '2025-08-31T04:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335795'}
2025-08-31 04:50:43,694 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-31 04:50:43,694 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85917755 passed
2025-08-31 04:50:43,695 - DEBUG - ====Verifying policy data for ctest-vn-85917755 in API_Server ======
2025-08-31 04:50:43,695 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-31 04:50:43,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054
2025-08-31 04:50:43,707 - DEBUG - Requesting: http://10.0.0.50:8082/project/c09db8a8-0d39-4c04-bb99-ff0fbc312c56
2025-08-31 04:50:43,773 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb6095a9-9702-4ea2-adb3-d4b0fb628aef
2025-08-31 04:50:43,782 - DEBUG - ==>Verifying data for policy with id: af995212-0257-47a1-a0a5-e7a5ba60ca7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-76212262', 'ctest-policy-allow-all-43886464']
2025-08-31 04:50:43,782 - INFO - VN ctest-vn-85917755 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-31 04:50:43,782 - DEBUG - Verifying the vn in opserver
2025-08-31 04:50:43,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-85917755 virtual network link through opserver 10.0.0.50
2025-08-31 04:50:43,782 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-31 04:50:43,791 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-85917755', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-85917755?flat'}
2025-08-31 04:50:43,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76212262:ctest-vn-85917755 is found in opserver
2025-08-31 04:50:43,799 - DEBUG - Do not have enough data to verify VN in agent
2025-08-31 04:50:43,804 - DEBUG - VRF ids for VN ctest-vn-85917755: {}
2025-08-31 04:50:43,870 - DEBUG - Services list from nova: [