2025-08-25 02:16:13,120 - INFO - Domain Default found not creating
2025-08-25 02:16:13,245 - INFO - Project ctest-TestBasicPolicy-08542021 not found, creating it
2025-08-25 02:16:13,685 - INFO - Created Project:ctest-TestBasicPolicy-08542021, ID : c7a57a77-ca88-4576-944d-75d97f9a7999
2025-08-25 02:16:15,080 - INFO - ================================================================================
2025-08-25 02:16:15,080 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 02:16:15,080 - 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-25 02:16:15,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-08-25 02:16:15,342 - INFO - Initial checks done. Running the testcase now
2025-08-25 02:16:15,342 - INFO -
2025-08-25 02:16:15,874 - DEBUG - Response for create_network : {'network': {'id': 'd3b8a01e-0512-4f84-8637-d9c5f341e0da', 'name': 'ctest-vn-21019745', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'project_id': 'c7a57a77ca884576944d75d97f9a7999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-vn-21019745'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:16:16,079 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cebd5cf3-7467-4324-a0eb-7fbd9c369d19', 'name': '', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'network_id': 'd3b8a01e-0512-4f84-8637-d9c5f341e0da', 'ip_version': 4, 'cidr': '57.202.161.128/26', 'allocation_pools': [{'start': '57.202.161.130', 'end': '57.202.161.190'}], 'gateway_ip': '57.202.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.202.161.130', 'tags': [], 'project_id': 'c7a57a77ca884576944d75d97f9a7999'}}
2025-08-25 02:16:16,097 - INFO - Created VN ctest-vn-21019745
2025-08-25 02:16:16,150 - DEBUG - VN ctest-vn-21019745 UUID is d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:16,470 - DEBUG - Response for create_network : {'network': {'id': '37154cc3-20c3-4682-b949-2049c4decb5a', 'name': 'ctest-vn-90132705', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'project_id': 'c7a57a77ca884576944d75d97f9a7999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-vn-90132705'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:16:16,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '33036c0a-540e-44ef-ae01-3b2860a899d0', 'name': '', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'network_id': '37154cc3-20c3-4682-b949-2049c4decb5a', 'ip_version': 4, 'cidr': '34.180.255.64/26', 'allocation_pools': [{'start': '34.180.255.66', 'end': '34.180.255.126'}], 'gateway_ip': '34.180.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.180.255.66', 'tags': [], 'project_id': 'c7a57a77ca884576944d75d97f9a7999'}}
2025-08-25 02:16:16,682 - INFO - Created VN ctest-vn-90132705
2025-08-25 02:16:16,735 - DEBUG - VN ctest-vn-90132705 UUID is 37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:16,886 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745, 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-08542021:ctest-vn-90132705, 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-25 02:16:17,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3b8a01e-0512-4f84-8637-d9c5f341e0da', 'name': 'ctest-vn-21019745', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'project_id': 'c7a57a77ca884576944d75d97f9a7999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cebd5cf3-7467-4324-a0eb-7fbd9c369d19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-vn-21019745'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-policy-allow-all-89169256']], 'subnet_ipam': [{'subnet_cidr': '57.202.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:16:17,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37154cc3-20c3-4682-b949-2049c4decb5a', 'name': 'ctest-vn-90132705', 'tenant_id': 'c7a57a77ca884576944d75d97f9a7999', 'project_id': 'c7a57a77ca884576944d75d97f9a7999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33036c0a-540e-44ef-ae01-3b2860a899d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-vn-90132705'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-policy-allow-all-89169256']], 'subnet_ipam': [{'subnet_cidr': '34.180.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:16:17,598 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-25 02:16:17,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-25 02:16:17,912 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004
2025-08-25 02:16:17,925 - DEBUG - Requesting: http://10.0.0.50:8082/project/c7a57a77-ca88-4576-944d-75d97f9a7999
2025-08-25 02:16:18,003 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,013 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,022 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8754dc30-098d-4b89-b116-38cf86094f97
2025-08-25 02:16:18,028 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8754dc30-098d-4b89-b116-38cf86094f97
2025-08-25 02:16:18,035 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27dc489d-43e8-4536-bd89-81932fca2b92
2025-08-25 02:16:18,041 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 02:16:18,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,049 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8754dc30-098d-4b89-b116-38cf86094f97
2025-08-25 02:16:18,061 - INFO - Verified VN network id 11 for VN d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,061 - INFO - Verifications in API Server for VN ctest-vn-21019745 passed
2025-08-25 02:16:18,061 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8754dc30-098d-4b89-b116-38cf86094f97
2025-08-25 02:16:18,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8754dc30-098d-4b89-b116-38cf86094f97
2025-08-25 02:16:18,083 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27dc489d-43e8-4536-bd89-81932fca2b92
2025-08-25 02:16:18,094 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08542021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15256119788512104324', 'uuid-lslong': '9671438169014395098'}, 'enable': 'true', 'created': '2025-08-25T02:16:15', 'last-modified': '2025-08-25T02:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926897'}
2025-08-25 02:16:18,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 02:16:18,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21019745 passed
2025-08-25 02:16:18,100 - DEBUG - ====Verifying policy data for ctest-vn-21019745 in API_Server ======
2025-08-25 02:16:18,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-25 02:16:18,104 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004
2025-08-25 02:16:18,115 - DEBUG - Requesting: http://10.0.0.50:8082/project/c7a57a77-ca88-4576-944d-75d97f9a7999
2025-08-25 02:16:18,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3b8a01e-0512-4f84-8637-d9c5f341e0da
2025-08-25 02:16:18,207 - DEBUG - ==>Verifying data for policy with id: 4b974b04-b7be-4355-a9ba-3fc108be56b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-policy-allow-all-89169256']
2025-08-25 02:16:18,207 - INFO - VN ctest-vn-21019745 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 02:16:18,207 - DEBUG - Verifying the vn in opserver
2025-08-25 02:16:18,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745 virtual network link through opserver 10.0.0.50
2025-08-25 02:16:18,208 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-25 02:16:18,495 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-25 02:16:18,544 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745?flat'}
2025-08-25 02:16:18,544 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-21019745 is found in opserver
2025-08-25 02:16:18,554 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 02:16:18,559 - DEBUG - VRF ids for VN ctest-vn-21019745: {}
2025-08-25 02:16:18,559 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-25 02:16:18,564 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004
2025-08-25 02:16:18,574 - DEBUG - Requesting: http://10.0.0.50:8082/project/c7a57a77-ca88-4576-944d-75d97f9a7999
2025-08-25 02:16:18,642 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,653 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,662 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/959c9b21-f95b-4655-8fe8-6a8fb7d2c542
2025-08-25 02:16:18,668 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/959c9b21-f95b-4655-8fe8-6a8fb7d2c542
2025-08-25 02:16:18,674 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36c2f687-4d38-4450-8da3-079c0137ddad
2025-08-25 02:16:18,679 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 02:16:18,679 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/959c9b21-f95b-4655-8fe8-6a8fb7d2c542
2025-08-25 02:16:18,700 - INFO - Verified VN network id 12 for VN 37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,700 - INFO - Verifications in API Server for VN ctest-vn-90132705 passed
2025-08-25 02:16:18,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/959c9b21-f95b-4655-8fe8-6a8fb7d2c542
2025-08-25 02:16:18,715 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/959c9b21-f95b-4655-8fe8-6a8fb7d2c542
2025-08-25 02:16:18,720 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36c2f687-4d38-4450-8da3-079c0137ddad
2025-08-25 02:16:18,731 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-90132705', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08542021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3969163047548962434', 'uuid-lslong': '13351238071524182874'}, 'enable': 'true', 'created': '2025-08-25T02:16:16', 'last-modified': '2025-08-25T02:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338174'}
2025-08-25 02:16:18,737 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 02:16:18,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90132705 passed
2025-08-25 02:16:18,737 - DEBUG - ====Verifying policy data for ctest-vn-90132705 in API_Server ======
2025-08-25 02:16:18,737 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-25 02:16:18,743 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004
2025-08-25 02:16:18,754 - DEBUG - Requesting: http://10.0.0.50:8082/project/c7a57a77-ca88-4576-944d-75d97f9a7999
2025-08-25 02:16:18,825 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/37154cc3-20c3-4682-b949-2049c4decb5a
2025-08-25 02:16:18,835 - DEBUG - ==>Verifying data for policy with id: 4b974b04-b7be-4355-a9ba-3fc108be56b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-08542021', 'ctest-policy-allow-all-89169256']
2025-08-25 02:16:18,835 - INFO - VN ctest-vn-90132705 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 02:16:18,835 - DEBUG - Verifying the vn in opserver
2025-08-25 02:16:18,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-90132705 virtual network link through opserver 10.0.0.50
2025-08-25 02:16:18,835 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-25 02:16:18,844 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-90132705', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-90132705?flat'}
2025-08-25 02:16:18,844 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08542021:ctest-vn-90132705 is found in opserver
2025-08-25 02:16:18,855 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 02:16:18,859 - DEBUG - VRF ids for VN ctest-vn-90132705: {}
2025-08-25 02:16:18,907 - DEBUG - Services list from nova: [