2025-07-23 13:06:49,631 - INFO - Domain Default found not creating
2025-07-23 13:06:49,808 - INFO - Project ctest-TestBasicPolicy-87591524 not found, creating it
2025-07-23 13:06:50,280 - INFO - Created Project:ctest-TestBasicPolicy-87591524, ID : 2c9d5127-7655-4dec-83b7-9620458f5d84
2025-07-23 13:06:51,762 - INFO - ================================================================================
2025-07-23 13:06:51,763 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-23 13:06:51,763 - 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-07-23 13:06:52,021 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-07-23 13:06:52,021 - INFO - Initial checks done. Running the testcase now
2025-07-23 13:06:52,021 - INFO -
2025-07-23 13:06:52,565 - DEBUG - Response for create_network : {'network': {'id': '29adb21f-d58e-431a-b031-764fab1aa51c', 'name': 'ctest-vn-77331564', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'project_id': '2c9d512776554dec83b79620458f5d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-vn-77331564'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:06:52,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '86ee0392-56f9-43c6-915d-867e6d8d9a1b', 'name': '', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'network_id': '29adb21f-d58e-431a-b031-764fab1aa51c', 'ip_version': 4, 'cidr': '176.209.45.128/26', 'allocation_pools': [{'start': '176.209.45.130', 'end': '176.209.45.190'}], 'gateway_ip': '176.209.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.209.45.130', 'tags': [], 'project_id': '2c9d512776554dec83b79620458f5d84'}}
2025-07-23 13:06:52,770 - INFO - Created VN ctest-vn-77331564
2025-07-23 13:06:52,826 - DEBUG - VN ctest-vn-77331564 UUID is 29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:53,135 - DEBUG - Response for create_network : {'network': {'id': 'a345b103-3572-47f5-9211-4d602c00e9c9', 'name': 'ctest-vn-29558925', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'project_id': '2c9d512776554dec83b79620458f5d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-vn-29558925'], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:06:53,307 - DEBUG - Response for create_subnet : {'subnet': {'id': '0936b125-a00f-4f3d-8688-67497682ba4c', 'name': '', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'network_id': 'a345b103-3572-47f5-9211-4d602c00e9c9', 'ip_version': 4, 'cidr': '28.100.178.0/26', 'allocation_pools': [{'start': '28.100.178.2', 'end': '28.100.178.62'}], 'gateway_ip': '28.100.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.100.178.2', 'tags': [], 'project_id': '2c9d512776554dec83b79620458f5d84'}}
2025-07-23 13:06:53,327 - INFO - Created VN ctest-vn-29558925
2025-07-23 13:06:53,386 - DEBUG - VN ctest-vn-29558925 UUID is a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:53,508 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564, 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-87591524:ctest-vn-29558925, 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-07-23 13:06:53,850 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29adb21f-d58e-431a-b031-764fab1aa51c', 'name': 'ctest-vn-77331564', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'project_id': '2c9d512776554dec83b79620458f5d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86ee0392-56f9-43c6-915d-867e6d8d9a1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-vn-77331564'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-policy-allow-all-85838655']], 'subnet_ipam': [{'subnet_cidr': '176.209.45.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:06:54,105 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a345b103-3572-47f5-9211-4d602c00e9c9', 'name': 'ctest-vn-29558925', 'tenant_id': '2c9d512776554dec83b79620458f5d84', 'project_id': '2c9d512776554dec83b79620458f5d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0936b125-a00f-4f3d-8688-67497682ba4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-vn-29558925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-policy-allow-all-85838655']], 'subnet_ipam': [{'subnet_cidr': '28.100.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-23 13:06:54,286 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 13:06:54,578 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 13:06:54,609 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4
2025-07-23 13:06:54,625 - DEBUG - Requesting: http://10.0.0.19:8082/project/2c9d5127-7655-4dec-83b7-9620458f5d84
2025-07-23 13:06:54,698 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,710 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,720 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8cc39bf0-845e-47a4-9b33-c54431deeed7
2025-07-23 13:06:54,727 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8cc39bf0-845e-47a4-9b33-c54431deeed7
2025-07-23 13:06:54,734 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/edc6ca88-9d2c-4822-8667-69c38ce24127
2025-07-23 13:06:54,740 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:06:54,741 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,751 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8cc39bf0-845e-47a4-9b33-c54431deeed7
2025-07-23 13:06:54,767 - INFO - Verified VN network id 11 for VN 29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,767 - INFO - Verifications in API Server for VN ctest-vn-77331564 passed
2025-07-23 13:06:54,767 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,780 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8cc39bf0-845e-47a4-9b33-c54431deeed7
2025-07-23 13:06:54,790 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8cc39bf0-845e-47a4-9b33-c54431deeed7
2025-07-23 13:06:54,798 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/edc6ca88-9d2c-4822-8667-69c38ce24127
2025-07-23 13:06:54,813 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87591524', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3003252376322589466', 'uuid-lslong': '12696058909079282972'}, 'enable': 'true', 'created': '2025-07-23T13:06:52', 'last-modified': '2025-07-23T13:06:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999461'}
2025-07-23 13:06:54,820 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-23 13:06:54,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77331564 passed
2025-07-23 13:06:54,820 - DEBUG - ====Verifying policy data for ctest-vn-77331564 in API_Server ======
2025-07-23 13:06:54,820 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 13:06:54,827 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4
2025-07-23 13:06:54,843 - DEBUG - Requesting: http://10.0.0.19:8082/project/2c9d5127-7655-4dec-83b7-9620458f5d84
2025-07-23 13:06:54,926 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/29adb21f-d58e-431a-b031-764fab1aa51c
2025-07-23 13:06:54,940 - DEBUG - ==>Verifying data for policy with id: f511b0b4-fc8e-4fad-80a2-e1a737ddb846, fqn: ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-policy-allow-all-85838655']
2025-07-23 13:06:54,940 - INFO - VN ctest-vn-77331564 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:06:54,940 - DEBUG - Verifying the vn in opserver
2025-07-23 13:06:54,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564 virtual network link through opserver 10.0.0.19
2025-07-23 13:06:54,941 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 13:06:55,236 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 13:06:55,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564?flat'}
2025-07-23 13:06:55,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-77331564 is found in opserver
2025-07-23 13:06:55,318 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:06:55,324 - DEBUG - VRF ids for VN ctest-vn-77331564: {}
2025-07-23 13:06:55,324 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 13:06:55,330 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4
2025-07-23 13:06:55,344 - DEBUG - Requesting: http://10.0.0.19:8082/project/2c9d5127-7655-4dec-83b7-9620458f5d84
2025-07-23 13:06:55,423 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,438 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,449 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2b594359-9979-4d66-8ac1-c7d5e476afd8
2025-07-23 13:06:55,457 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2b594359-9979-4d66-8ac1-c7d5e476afd8
2025-07-23 13:06:55,465 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0a39e30f-51d4-43c6-81c5-3fa00c1ec0b1
2025-07-23 13:06:55,474 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:06:55,474 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,484 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2b594359-9979-4d66-8ac1-c7d5e476afd8
2025-07-23 13:06:55,504 - INFO - Verified VN network id 12 for VN a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,504 - INFO - Verifications in API Server for VN ctest-vn-29558925 passed
2025-07-23 13:06:55,504 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,516 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2b594359-9979-4d66-8ac1-c7d5e476afd8
2025-07-23 13:06:55,525 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2b594359-9979-4d66-8ac1-c7d5e476afd8
2025-07-23 13:06:55,534 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0a39e30f-51d4-43c6-81c5-3fa00c1ec0b1
2025-07-23 13:06:55,549 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-29558925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87591524', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11765004228914989045', 'uuid-lslong': '10525278879592016329'}, 'enable': 'true', 'created': '2025-07-23T13:06:53', 'last-modified': '2025-07-23T13:06:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471574'}
2025-07-23 13:06:55,557 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-23 13:06:55,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29558925 passed
2025-07-23 13:06:55,557 - DEBUG - ====Verifying policy data for ctest-vn-29558925 in API_Server ======
2025-07-23 13:06:55,557 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-23 13:06:55,564 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4
2025-07-23 13:06:55,580 - DEBUG - Requesting: http://10.0.0.19:8082/project/2c9d5127-7655-4dec-83b7-9620458f5d84
2025-07-23 13:06:55,658 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a345b103-3572-47f5-9211-4d602c00e9c9
2025-07-23 13:06:55,670 - DEBUG - ==>Verifying data for policy with id: f511b0b4-fc8e-4fad-80a2-e1a737ddb846, fqn: ['default-domain', 'ctest-TestBasicPolicy-87591524', 'ctest-policy-allow-all-85838655']
2025-07-23 13:06:55,670 - INFO - VN ctest-vn-29558925 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-23 13:06:55,670 - DEBUG - Verifying the vn in opserver
2025-07-23 13:06:55,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-29558925 virtual network link through opserver 10.0.0.19
2025-07-23 13:06:55,670 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-23 13:06:55,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-29558925', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-29558925?flat'}
2025-07-23 13:06:55,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87591524:ctest-vn-29558925 is found in opserver
2025-07-23 13:06:55,694 - DEBUG - Do not have enough data to verify VN in agent
2025-07-23 13:06:55,700 - DEBUG - VRF ids for VN ctest-vn-29558925: {}
2025-07-23 13:06:55,764 - DEBUG - Services list from nova: [