2025-04-28 15:56:20,118 - INFO - Domain Default found not creating
2025-04-28 15:56:20,245 - INFO - Project ctest-TestBasicPolicy-18918379 not found, creating it
2025-04-28 15:56:20,696 - INFO - Created Project:ctest-TestBasicPolicy-18918379, ID : 69c9f274-fd7b-45c5-b44f-cdd5becaecc6
2025-04-28 15:56:22,057 - INFO - ================================================================================
2025-04-28 15:56:22,057 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 15:56:22,057 - 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-04-28 15:56:22,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with
2025-04-28 15:56:22,317 - INFO - Initial checks done. Running the testcase now
2025-04-28 15:56:22,317 - INFO -
2025-04-28 15:56:22,839 - DEBUG - Response for create_network : {'network': {'id': '2d2175a5-2349-45ef-9846-78f7eb514a14', 'name': 'ctest-vn-48455069', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-vn-48455069'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:56:23,055 - DEBUG - Response for create_subnet : {'subnet': {'id': '063e1675-4b36-4931-a088-f818bab6911f', 'name': '', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'network_id': '2d2175a5-2349-45ef-9846-78f7eb514a14', 'ip_version': 4, 'cidr': '218.227.47.128/26', 'allocation_pools': [{'start': '218.227.47.130', 'end': '218.227.47.190'}], 'gateway_ip': '218.227.47.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.227.47.130', 'tags': [], 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6'}}
2025-04-28 15:56:23,071 - INFO - Created VN ctest-vn-48455069
2025-04-28 15:56:23,127 - DEBUG - VN ctest-vn-48455069 UUID is 2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:23,428 - DEBUG - Response for create_network : {'network': {'id': 'afe91e37-c42e-49c3-913d-828006602c4d', 'name': 'ctest-vn-72654578', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-vn-72654578'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:56:23,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '6eebf4a8-7981-453c-b3af-74a087bc3544', 'name': '', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'network_id': 'afe91e37-c42e-49c3-913d-828006602c4d', 'ip_version': 4, 'cidr': '174.187.210.192/26', 'allocation_pools': [{'start': '174.187.210.194', 'end': '174.187.210.254'}], 'gateway_ip': '174.187.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.187.210.194', 'tags': [], 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6'}}
2025-04-28 15:56:23,620 - INFO - Created VN ctest-vn-72654578
2025-04-28 15:56:23,671 - DEBUG - VN ctest-vn-72654578 UUID is afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:23,823 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069, 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-18918379:ctest-vn-72654578, 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-04-28 15:56:24,115 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d2175a5-2349-45ef-9846-78f7eb514a14', 'name': 'ctest-vn-48455069', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['063e1675-4b36-4931-a088-f818bab6911f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-vn-48455069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-policy-allow-all-23838629']], 'subnet_ipam': [{'subnet_cidr': '218.227.47.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:56:24,347 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afe91e37-c42e-49c3-913d-828006602c4d', 'name': 'ctest-vn-72654578', 'tenant_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'project_id': '69c9f274fd7b45c5b44fcdd5becaecc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6eebf4a8-7981-453c-b3af-74a087bc3544'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-vn-72654578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-policy-allow-all-23838629']], 'subnet_ipam': [{'subnet_cidr': '174.187.210.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:56:24,511 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-28 15:56:24,800 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-28 15:56:24,825 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4615fbe1-7dcd-4867-8b3a-33c48892a70a
2025-04-28 15:56:24,837 - DEBUG - Requesting: http://10.0.0.22:8082/project/69c9f274-fd7b-45c5-b44f-cdd5becaecc6
2025-04-28 15:56:24,904 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:24,914 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:24,923 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a58f3a8b-5772-4d36-9f4f-68c5f148f2d2
2025-04-28 15:56:24,930 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a58f3a8b-5772-4d36-9f4f-68c5f148f2d2
2025-04-28 15:56:24,936 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3c6ca707-4f90-470d-883c-297ad88a480f
2025-04-28 15:56:24,941 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:56:24,942 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:24,950 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a58f3a8b-5772-4d36-9f4f-68c5f148f2d2
2025-04-28 15:56:24,963 - INFO - Verified VN network id 8 for VN 2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:24,963 - INFO - Verifications in API Server for VN ctest-vn-48455069 passed
2025-04-28 15:56:24,963 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:24,972 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a58f3a8b-5772-4d36-9f4f-68c5f148f2d2
2025-04-28 15:56:24,978 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a58f3a8b-5772-4d36-9f4f-68c5f148f2d2
2025-04-28 15:56:24,985 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3c6ca707-4f90-470d-883c-297ad88a480f
2025-04-28 15:56:24,996 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18918379', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3252009758060266991', 'uuid-lslong': '10972590548335020564'}, 'enable': 'true', 'created': '2025-04-28T15:56:22', 'last-modified': '2025-04-28T15:56:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904514'}
2025-04-28 15:56:25,002 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:56:25,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48455069 passed
2025-04-28 15:56:25,002 - DEBUG - ====Verifying policy data for ctest-vn-48455069 in API_Server ======
2025-04-28 15:56:25,002 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-28 15:56:25,007 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4615fbe1-7dcd-4867-8b3a-33c48892a70a
2025-04-28 15:56:25,019 - DEBUG - Requesting: http://10.0.0.22:8082/project/69c9f274-fd7b-45c5-b44f-cdd5becaecc6
2025-04-28 15:56:25,091 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2d2175a5-2349-45ef-9846-78f7eb514a14
2025-04-28 15:56:25,100 - DEBUG - ==>Verifying data for policy with id: f6de4491-0bbe-43c3-ac98-b0ee05696601, fqn: ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-policy-allow-all-23838629']
2025-04-28 15:56:25,100 - INFO - VN ctest-vn-48455069 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:56:25,100 - DEBUG - Verifying the vn in opserver
2025-04-28 15:56:25,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069 virtual network link through opserver 10.0.0.22
2025-04-28 15:56:25,100 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-28 15:56:25,388 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-28 15:56:25,436 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069?flat'}
2025-04-28 15:56:25,437 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-48455069 is found in opserver
2025-04-28 15:56:25,447 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:56:25,452 - DEBUG - VRF ids for VN ctest-vn-48455069: {}
2025-04-28 15:56:25,452 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-28 15:56:25,457 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4615fbe1-7dcd-4867-8b3a-33c48892a70a
2025-04-28 15:56:25,468 - DEBUG - Requesting: http://10.0.0.22:8082/project/69c9f274-fd7b-45c5-b44f-cdd5becaecc6
2025-04-28 15:56:25,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,548 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,556 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f4f35970-80b8-4514-a3e3-2d31326fc7b3
2025-04-28 15:56:25,562 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f4f35970-80b8-4514-a3e3-2d31326fc7b3
2025-04-28 15:56:25,568 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4d213310-a095-462c-a216-b0ecfa68b94d
2025-04-28 15:56:25,574 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:56:25,574 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,582 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f4f35970-80b8-4514-a3e3-2d31326fc7b3
2025-04-28 15:56:25,594 - INFO - Verified VN network id 9 for VN afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,594 - INFO - Verifications in API Server for VN ctest-vn-72654578 passed
2025-04-28 15:56:25,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,602 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f4f35970-80b8-4514-a3e3-2d31326fc7b3
2025-04-28 15:56:25,608 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f4f35970-80b8-4514-a3e3-2d31326fc7b3
2025-04-28 15:56:25,613 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4d213310-a095-462c-a216-b0ecfa68b94d
2025-04-28 15:56:25,623 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-72654578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18918379', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12675695851074374083', 'uuid-lslong': '10465664595453291597'}, 'enable': 'true', 'created': '2025-04-28T15:56:23', 'last-modified': '2025-04-28T15:56:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.304767'}
2025-04-28 15:56:25,629 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:56:25,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72654578 passed
2025-04-28 15:56:25,629 - DEBUG - ====Verifying policy data for ctest-vn-72654578 in API_Server ======
2025-04-28 15:56:25,629 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-28 15:56:25,634 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4615fbe1-7dcd-4867-8b3a-33c48892a70a
2025-04-28 15:56:25,644 - DEBUG - Requesting: http://10.0.0.22:8082/project/69c9f274-fd7b-45c5-b44f-cdd5becaecc6
2025-04-28 15:56:25,713 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/afe91e37-c42e-49c3-913d-828006602c4d
2025-04-28 15:56:25,722 - DEBUG - ==>Verifying data for policy with id: f6de4491-0bbe-43c3-ac98-b0ee05696601, fqn: ['default-domain', 'ctest-TestBasicPolicy-18918379', 'ctest-policy-allow-all-23838629']
2025-04-28 15:56:25,722 - INFO - VN ctest-vn-72654578 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:56:25,722 - DEBUG - Verifying the vn in opserver
2025-04-28 15:56:25,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-72654578 virtual network link through opserver 10.0.0.22
2025-04-28 15:56:25,722 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-28 15:56:25,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-72654578', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-72654578?flat'}
2025-04-28 15:56:25,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18918379:ctest-vn-72654578 is found in opserver
2025-04-28 15:56:25,741 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:56:25,746 - DEBUG - VRF ids for VN ctest-vn-72654578: {}
2025-04-28 15:56:25,796 - DEBUG - Services list from nova: [