2024-11-03 12:56:52,686 - INFO - Domain Default found not creating
2024-11-03 12:56:52,863 - INFO - Project ctest-TestBasicPolicy-99513580 not found, creating it
2024-11-03 12:56:53,364 - INFO - Created Project:ctest-TestBasicPolicy-99513580, ID : 22274a91-b3d0-4097-a59b-bee1e1fd319d
2024-11-03 12:56:54,859 - INFO - ================================================================================
2024-11-03 12:56:54,859 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-03 12:56:54,859 - 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
2024-11-03 12:56:55,121 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with
2024-11-03 12:56:55,122 - INFO - Initial checks done. Running the testcase now
2024-11-03 12:56:55,122 - INFO -
2024-11-03 12:56:55,698 - DEBUG - Response for create_network : {'network': {'id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'name': 'ctest-vn-22871804', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-22871804'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 12:56:55,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ddb875-c0bd-48b7-ae86-75ff68412f80', 'name': '', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'network_id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'ip_version': 4, 'cidr': '214.11.149.128/26', 'allocation_pools': [{'start': '214.11.149.130', 'end': '214.11.149.190'}], 'gateway_ip': '214.11.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.11.149.130', 'tags': [], 'project_id': '22274a91b3d04097a59bbee1e1fd319d'}}
2024-11-03 12:56:55,931 - INFO - Created VN ctest-vn-22871804
2024-11-03 12:56:55,991 - DEBUG - VN ctest-vn-22871804 UUID is 9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:56,306 - DEBUG - Response for create_network : {'network': {'id': '312c9704-4496-4807-b8db-4a308e46f632', 'name': 'ctest-vn-45029810', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-45029810'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 12:56:56,478 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5ed7b08-5af0-492e-8439-a1cda10a071d', 'name': '', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'network_id': '312c9704-4496-4807-b8db-4a308e46f632', 'ip_version': 4, 'cidr': '172.73.174.64/26', 'allocation_pools': [{'start': '172.73.174.66', 'end': '172.73.174.126'}], 'gateway_ip': '172.73.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.73.174.66', 'tags': [], 'project_id': '22274a91b3d04097a59bbee1e1fd319d'}}
2024-11-03 12:56:56,500 - INFO - Created VN ctest-vn-45029810
2024-11-03 12:56:56,559 - DEBUG - VN ctest-vn-45029810 UUID is 312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:56,687 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804, 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-99513580:ctest-vn-45029810, 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]
2024-11-03 12:56:57,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ab8a45e-3099-43c8-8493-c3a2a266c453', 'name': 'ctest-vn-22871804', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ddb875-c0bd-48b7-ae86-75ff68412f80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-22871804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']], 'subnet_ipam': [{'subnet_cidr': '214.11.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 12:56:57,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '312c9704-4496-4807-b8db-4a308e46f632', 'name': 'ctest-vn-45029810', 'tenant_id': '22274a91b3d04097a59bbee1e1fd319d', 'project_id': '22274a91b3d04097a59bbee1e1fd319d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5ed7b08-5af0-492e-8439-a1cda10a071d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-vn-45029810'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']], 'subnet_ipam': [{'subnet_cidr': '172.73.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 12:56:57,467 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-03 12:56:57,762 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-03 12:56:57,795 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb
2024-11-03 12:56:57,810 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d
2024-11-03 12:56:57,893 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:57,909 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:57,924 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b
2024-11-03 12:56:57,932 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b
2024-11-03 12:56:57,941 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4d99c4dc-8b91-44e4-a288-6336f8542dca
2024-11-03 12:56:57,949 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 12:56:57,949 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:57,964 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b
2024-11-03 12:56:57,984 - INFO - Verified VN network id 9 for VN 9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:57,984 - INFO - Verifications in API Server for VN ctest-vn-22871804 passed
2024-11-03 12:56:57,984 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:57,998 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b
2024-11-03 12:56:58,010 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/10172630-7b0d-4dc7-ba55-edd839ab326b
2024-11-03 12:56:58,019 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4d99c4dc-8b91-44e4-a288-6336f8542dca
2024-11-03 12:56:58,032 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99513580', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11148841602004894664', 'uuid-lslong': '9553194337859716179'}, 'enable': 'true', 'created': '2024-11-03T12:56:55', 'last-modified': '2024-11-03T12:56:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051538'}
2024-11-03 12:56:58,040 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 12:56:58,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22871804 passed
2024-11-03 12:56:58,040 - DEBUG - ====Verifying policy data for ctest-vn-22871804 in API_Server ======
2024-11-03 12:56:58,041 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-03 12:56:58,068 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb
2024-11-03 12:56:58,110 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d
2024-11-03 12:56:58,277 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9ab8a45e-3099-43c8-8493-c3a2a266c453
2024-11-03 12:56:58,359 - DEBUG - ==>Verifying data for policy with id: dcf5752f-cfc9-4b62-baef-d5b369a4d4ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']
2024-11-03 12:56:58,359 - INFO - VN ctest-vn-22871804 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 12:56:58,359 - DEBUG - Verifying the vn in opserver
2024-11-03 12:56:58,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804 virtual network link through opserver 10.0.0.24
2024-11-03 12:56:58,360 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-03 12:56:58,676 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-03 12:56:58,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804?flat'}
2024-11-03 12:56:58,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-22871804 is found in opserver
2024-11-03 12:56:58,782 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 12:56:58,788 - DEBUG - VRF ids for VN ctest-vn-22871804: {}
2024-11-03 12:56:58,789 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-03 12:56:58,796 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb
2024-11-03 12:56:58,826 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d
2024-11-03 12:56:58,907 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:58,929 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:58,942 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651
2024-11-03 12:56:58,951 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651
2024-11-03 12:56:58,960 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/584614bb-d361-40b7-b8df-fceb19f6e3b6
2024-11-03 12:56:58,968 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 12:56:58,968 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:58,981 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651
2024-11-03 12:56:58,999 - INFO - Verified VN network id 10 for VN 312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:59,000 - INFO - Verifications in API Server for VN ctest-vn-45029810 passed
2024-11-03 12:56:59,000 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:59,013 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651
2024-11-03 12:56:59,021 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/059c3038-e390-43a6-a215-f9c3e4184651
2024-11-03 12:56:59,029 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/584614bb-d361-40b7-b8df-fceb19f6e3b6
2024-11-03 12:56:59,042 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99513580', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3543373051420100615', 'uuid-lslong': '13320321895284274738'}, 'enable': 'true', 'created': '2024-11-03T12:56:56', 'last-modified': '2024-11-03T12:56:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.808195'}
2024-11-03 12:56:59,048 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 12:56:59,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45029810 passed
2024-11-03 12:56:59,048 - DEBUG - ====Verifying policy data for ctest-vn-45029810 in API_Server ======
2024-11-03 12:56:59,048 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-03 12:56:59,053 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c37ed47c-ffef-4a83-b5a0-7272113d02bb
2024-11-03 12:56:59,066 - DEBUG - Requesting: http://10.0.0.24:8082/project/22274a91-b3d0-4097-a59b-bee1e1fd319d
2024-11-03 12:56:59,145 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/312c9704-4496-4807-b8db-4a308e46f632
2024-11-03 12:56:59,159 - DEBUG - ==>Verifying data for policy with id: dcf5752f-cfc9-4b62-baef-d5b369a4d4ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-99513580', 'ctest-policy-allow-all-59981801']
2024-11-03 12:56:59,159 - INFO - VN ctest-vn-45029810 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 12:56:59,159 - DEBUG - Verifying the vn in opserver
2024-11-03 12:56:59,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810 virtual network link through opserver 10.0.0.24
2024-11-03 12:56:59,159 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-03 12:56:59,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810?flat'}
2024-11-03 12:56:59,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99513580:ctest-vn-45029810 is found in opserver
2024-11-03 12:56:59,181 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 12:56:59,187 - DEBUG - VRF ids for VN ctest-vn-45029810: {}
2024-11-03 12:56:59,254 - DEBUG - Services list from nova: [