2025-01-10 21:51:53,533 - INFO - Domain Default found not creating
2025-01-10 21:51:53,715 - INFO - Project ctest-TestBasicPolicy-04030547 not found, creating it
2025-01-10 21:51:54,228 - INFO - Created Project:ctest-TestBasicPolicy-04030547, ID : b0464c3a-54a6-45a2-be98-a136936613cc
2025-01-10 21:51:55,829 - INFO - ================================================================================
2025-01-10 21:51:55,829 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-10 21:51:55,829 - 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-01-10 21:51:56,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.7': '0'}} with
2025-01-10 21:51:56,089 - INFO - Initial checks done. Running the testcase now
2025-01-10 21:51:56,089 - INFO -
2025-01-10 21:51:56,682 - DEBUG - Response for create_network : {'network': {'id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'name': 'ctest-vn-39123457', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-39123457'], 'port_security_enabled': True, 'description': ''}}
2025-01-10 21:51:56,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '70715d91-1e95-4145-8d6c-5307befdc4c2', 'name': '', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'network_id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'ip_version': 4, 'cidr': '221.12.41.192/26', 'allocation_pools': [{'start': '221.12.41.194', 'end': '221.12.41.254'}], 'gateway_ip': '221.12.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.12.41.194', 'tags': [], 'project_id': 'b0464c3a54a645a2be98a136936613cc'}}
2025-01-10 21:51:56,926 - INFO - Created VN ctest-vn-39123457
2025-01-10 21:51:56,985 - DEBUG - VN ctest-vn-39123457 UUID is cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:57,328 - DEBUG - Response for create_network : {'network': {'id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'name': 'ctest-vn-41948180', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-41948180'], 'port_security_enabled': True, 'description': ''}}
2025-01-10 21:51:57,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b451a94-ad4d-4c00-8a25-08d2b5de15f2', 'name': '', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'network_id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'ip_version': 4, 'cidr': '221.52.179.64/26', 'allocation_pools': [{'start': '221.52.179.66', 'end': '221.52.179.126'}], 'gateway_ip': '221.52.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.52.179.66', 'tags': [], 'project_id': 'b0464c3a54a645a2be98a136936613cc'}}
2025-01-10 21:51:57,539 - INFO - Created VN ctest-vn-41948180
2025-01-10 21:51:57,593 - DEBUG - VN ctest-vn-41948180 UUID is 8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:57,716 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457, 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-04030547:ctest-vn-41948180, 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-01-10 21:51:58,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cec851ec-4019-4503-97e2-f556bfae4300', 'name': 'ctest-vn-39123457', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70715d91-1e95-4145-8d6c-5307befdc4c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-39123457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']], 'subnet_ipam': [{'subnet_cidr': '221.12.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-10 21:51:58,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c59294e-8fd1-4d16-b05f-99110cf05949', 'name': 'ctest-vn-41948180', 'tenant_id': 'b0464c3a54a645a2be98a136936613cc', 'project_id': 'b0464c3a54a645a2be98a136936613cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b451a94-ad4d-4c00-8a25-08d2b5de15f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-vn-41948180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']], 'subnet_ipam': [{'subnet_cidr': '221.52.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-10 21:51:58,485 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-10 21:51:58,811 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-10 21:51:58,852 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e
2025-01-10 21:51:58,867 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc
2025-01-10 21:51:58,949 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:58,962 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:58,974 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30
2025-01-10 21:51:58,985 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30
2025-01-10 21:51:58,995 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/993b7903-25c9-4acd-84f3-c632897e9c74
2025-01-10 21:51:59,005 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-10 21:51:59,005 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:59,018 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30
2025-01-10 21:51:59,042 - INFO - Verified VN network id 9 for VN cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:59,042 - INFO - Verifications in API Server for VN ctest-vn-39123457 passed
2025-01-10 21:51:59,042 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:59,055 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30
2025-01-10 21:51:59,064 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1ba7ea07-27c7-4eed-8cb1-24628ed53c30
2025-01-10 21:51:59,072 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/993b7903-25c9-4acd-84f3-c632897e9c74
2025-01-10 21:51:59,089 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04030547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14900249442284815619', 'uuid-lslong': '10944579797395587840'}, 'enable': 'true', 'created': '2025-01-10T21:51:56', 'last-modified': '2025-01-10T21:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079302'}
2025-01-10 21:51:59,098 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-10 21:51:59,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39123457 passed
2025-01-10 21:51:59,099 - DEBUG - ====Verifying policy data for ctest-vn-39123457 in API_Server ======
2025-01-10 21:51:59,099 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-10 21:51:59,108 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e
2025-01-10 21:51:59,127 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc
2025-01-10 21:51:59,204 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cec851ec-4019-4503-97e2-f556bfae4300
2025-01-10 21:51:59,217 - DEBUG - ==>Verifying data for policy with id: c7f6e06f-a249-4849-b942-089a55ac5462, fqn: ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']
2025-01-10 21:51:59,217 - INFO - VN ctest-vn-39123457 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-10 21:51:59,217 - DEBUG - Verifying the vn in opserver
2025-01-10 21:51:59,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457 virtual network link through opserver 10.0.0.41
2025-01-10 21:51:59,217 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-10 21:51:59,543 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-10 21:51:59,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457?flat'}
2025-01-10 21:51:59,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-39123457 is found in opserver
2025-01-10 21:51:59,628 - DEBUG - Do not have enough data to verify VN in agent
2025-01-10 21:51:59,634 - DEBUG - VRF ids for VN ctest-vn-39123457: {}
2025-01-10 21:51:59,634 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-10 21:51:59,643 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e
2025-01-10 21:51:59,658 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc
2025-01-10 21:51:59,737 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:59,753 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:59,766 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a
2025-01-10 21:51:59,775 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a
2025-01-10 21:51:59,784 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/29369bac-d7df-484e-aa36-5891546eb57f
2025-01-10 21:51:59,793 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-10 21:51:59,793 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:59,806 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a
2025-01-10 21:51:59,824 - INFO - Verified VN network id 10 for VN 8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:59,824 - INFO - Verifications in API Server for VN ctest-vn-41948180 passed
2025-01-10 21:51:59,824 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:51:59,845 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a
2025-01-10 21:51:59,855 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/15ce5430-f96a-46ec-8bd2-ecf107b1671a
2025-01-10 21:51:59,866 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/29369bac-d7df-484e-aa36-5891546eb57f
2025-01-10 21:51:59,891 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04030547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10113159855634205974', 'uuid-lslong': '12709044971973400905'}, 'enable': 'true', 'created': '2025-01-10T21:51:57', 'last-modified': '2025-01-10T21:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.613671'}
2025-01-10 21:51:59,906 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-10 21:51:59,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41948180 passed
2025-01-10 21:51:59,908 - DEBUG - ====Verifying policy data for ctest-vn-41948180 in API_Server ======
2025-01-10 21:51:59,909 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-10 21:51:59,931 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a8d0e96e-1c90-46e1-bd09-73b322ad827e
2025-01-10 21:51:59,954 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0464c3a-54a6-45a2-be98-a136936613cc
2025-01-10 21:52:00,030 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8c59294e-8fd1-4d16-b05f-99110cf05949
2025-01-10 21:52:00,045 - DEBUG - ==>Verifying data for policy with id: c7f6e06f-a249-4849-b942-089a55ac5462, fqn: ['default-domain', 'ctest-TestBasicPolicy-04030547', 'ctest-policy-allow-all-96079584']
2025-01-10 21:52:00,045 - INFO - VN ctest-vn-41948180 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-10 21:52:00,045 - DEBUG - Verifying the vn in opserver
2025-01-10 21:52:00,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180 virtual network link through opserver 10.0.0.41
2025-01-10 21:52:00,045 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-10 21:52:00,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180?flat'}
2025-01-10 21:52:00,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04030547:ctest-vn-41948180 is found in opserver
2025-01-10 21:52:00,069 - DEBUG - Do not have enough data to verify VN in agent
2025-01-10 21:52:00,077 - DEBUG - VRF ids for VN ctest-vn-41948180: {}
2025-01-10 21:52:00,152 - DEBUG - Services list from nova: [