2024-10-31 02:27:05,163 - INFO - Domain Default found not creating
2024-10-31 02:27:05,345 - INFO - Project ctest-TestBasicPolicy-46768958 not found, creating it
2024-10-31 02:27:05,873 - INFO - Created Project:ctest-TestBasicPolicy-46768958, ID : ea519837-aa42-4d53-9f0e-6024ac7e143a
2024-10-31 02:27:08,061 - INFO - ================================================================================
2024-10-31 02:27:08,061 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-31 02:27:08,061 - 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-10-31 02:27:08,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.0.0.31': '0'}} with
2024-10-31 02:27:08,319 - INFO - Initial checks done. Running the testcase now
2024-10-31 02:27:08,319 - INFO -
2024-10-31 02:27:08,912 - DEBUG - Response for create_network : {'network': {'id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'name': 'ctest-vn-93950208', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-93950208'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:09,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dcdc433-f064-4b04-86a1-ed08ea11e47a', 'name': '', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'network_id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'ip_version': 4, 'cidr': '222.218.26.64/26', 'allocation_pools': [{'start': '222.218.26.66', 'end': '222.218.26.126'}], 'gateway_ip': '222.218.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.218.26.66', 'tags': [], 'project_id': 'ea519837aa424d539f0e6024ac7e143a'}}
2024-10-31 02:27:09,144 - INFO - Created VN ctest-vn-93950208
2024-10-31 02:27:09,201 - DEBUG - VN ctest-vn-93950208 UUID is 7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:09,507 - DEBUG - Response for create_network : {'network': {'id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'name': 'ctest-vn-58759369', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-58759369'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:09,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f449ee99-26d9-4d32-85b2-646925effaec', 'name': '', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'network_id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'ip_version': 4, 'cidr': '68.80.21.128/26', 'allocation_pools': [{'start': '68.80.21.130', 'end': '68.80.21.190'}], 'gateway_ip': '68.80.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.80.21.130', 'tags': [], 'project_id': 'ea519837aa424d539f0e6024ac7e143a'}}
2024-10-31 02:27:09,722 - INFO - Created VN ctest-vn-58759369
2024-10-31 02:27:09,776 - DEBUG - VN ctest-vn-58759369 UUID is 11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:09,901 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208, 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-46768958:ctest-vn-58759369, 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-10-31 02:27:10,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a7c84e9-97a0-475c-a596-deaa61dc2a88', 'name': 'ctest-vn-93950208', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dcdc433-f064-4b04-86a1-ed08ea11e47a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-93950208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']], 'subnet_ipam': [{'subnet_cidr': '222.218.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:10,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11986ae4-8a2e-48a3-a481-47d66476e645', 'name': 'ctest-vn-58759369', 'tenant_id': 'ea519837aa424d539f0e6024ac7e143a', 'project_id': 'ea519837aa424d539f0e6024ac7e143a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f449ee99-26d9-4d32-85b2-646925effaec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-vn-58759369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']], 'subnet_ipam': [{'subnet_cidr': '68.80.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:10,660 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 02:27:10,955 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 02:27:10,986 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e
2024-10-31 02:27:11,003 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a
2024-10-31 02:27:11,091 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,120 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8
2024-10-31 02:27:11,130 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8
2024-10-31 02:27:11,140 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1745adfe-2505-478a-a059-96d4792765fa
2024-10-31 02:27:11,149 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:27:11,149 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,163 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8
2024-10-31 02:27:11,185 - INFO - Verified VN network id 8 for VN 7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,185 - INFO - Verifications in API Server for VN ctest-vn-93950208 passed
2024-10-31 02:27:11,185 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,200 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8
2024-10-31 02:27:11,209 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/879c693c-eac7-44fc-90c6-ad41e46a9ff8
2024-10-31 02:27:11,218 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/1745adfe-2505-478a-a059-96d4792765fa
2024-10-31 02:27:11,232 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46768958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8826075508545439580', 'uuid-lslong': '11931969086132333192'}, 'enable': 'true', 'created': '2024-10-31T02:27:08', 'last-modified': '2024-10-31T02:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041517'}
2024-10-31 02:27:11,239 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:27:11,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93950208 passed
2024-10-31 02:27:11,239 - DEBUG - ====Verifying policy data for ctest-vn-93950208 in API_Server ======
2024-10-31 02:27:11,239 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 02:27:11,246 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e
2024-10-31 02:27:11,260 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a
2024-10-31 02:27:11,341 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/7a7c84e9-97a0-475c-a596-deaa61dc2a88
2024-10-31 02:27:11,357 - DEBUG - ==>Verifying data for policy with id: c036eef5-1f03-4b8c-995d-c717c5f6a7fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']
2024-10-31 02:27:11,357 - INFO - VN ctest-vn-93950208 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:27:11,357 - DEBUG - Verifying the vn in opserver
2024-10-31 02:27:11,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208 virtual network link through opserver 10.0.0.31
2024-10-31 02:27:11,357 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 02:27:11,653 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 02:27:11,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208?flat'}
2024-10-31 02:27:11,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-93950208 is found in opserver
2024-10-31 02:27:11,728 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:27:11,734 - DEBUG - VRF ids for VN ctest-vn-93950208: {}
2024-10-31 02:27:11,734 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 02:27:11,742 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e
2024-10-31 02:27:11,759 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a
2024-10-31 02:27:11,846 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:11,864 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:11,881 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee
2024-10-31 02:27:11,893 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee
2024-10-31 02:27:11,904 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8e8422d-489b-49ee-b96d-269436cc6e14
2024-10-31 02:27:11,913 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:27:11,913 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:11,926 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee
2024-10-31 02:27:11,947 - INFO - Verified VN network id 9 for VN 11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:11,948 - INFO - Verifications in API Server for VN ctest-vn-58759369 passed
2024-10-31 02:27:11,948 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:11,962 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee
2024-10-31 02:27:11,971 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/52002948-02c2-4889-ad46-ce68ed357dee
2024-10-31 02:27:11,980 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8e8422d-489b-49ee-b96d-269436cc6e14
2024-10-31 02:27:11,994 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46768958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1267880824908171427', 'uuid-lslong': '11853834680349943365'}, 'enable': 'true', 'created': '2024-10-31T02:27:09', 'last-modified': '2024-10-31T02:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.556500'}
2024-10-31 02:27:12,000 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:27:12,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58759369 passed
2024-10-31 02:27:12,001 - DEBUG - ====Verifying policy data for ctest-vn-58759369 in API_Server ======
2024-10-31 02:27:12,001 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-10-31 02:27:12,007 - DEBUG - Requesting: http://10.0.0.31:8082/domain/a22851d8-7bef-4903-956c-5949b718f81e
2024-10-31 02:27:12,020 - DEBUG - Requesting: http://10.0.0.31:8082/project/ea519837-aa42-4d53-9f0e-6024ac7e143a
2024-10-31 02:27:12,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/11986ae4-8a2e-48a3-a481-47d66476e645
2024-10-31 02:27:12,120 - DEBUG - ==>Verifying data for policy with id: c036eef5-1f03-4b8c-995d-c717c5f6a7fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-46768958', 'ctest-policy-allow-all-05933626']
2024-10-31 02:27:12,120 - INFO - VN ctest-vn-58759369 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:27:12,120 - DEBUG - Verifying the vn in opserver
2024-10-31 02:27:12,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369 virtual network link through opserver 10.0.0.31
2024-10-31 02:27:12,120 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-10-31 02:27:12,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369?flat'}
2024-10-31 02:27:12,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46768958:ctest-vn-58759369 is found in opserver
2024-10-31 02:27:12,143 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:27:12,149 - DEBUG - VRF ids for VN ctest-vn-58759369: {}
2024-10-31 02:27:12,205 - DEBUG - Services list from nova: [